1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-11-13 21:05:01 -05:00

Set headers in fixed order

This commit is contained in:
Reinhard Pointner 2019-02-11 14:13:44 +07:00
parent ae989ee990
commit 6092dae7bd

View File

@ -16,7 +16,7 @@ import java.time.LocalDate;
import java.time.ZoneOffset;
import java.time.ZonedDateTime;
import java.time.format.DateTimeFormatter;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Optional;
@ -143,7 +143,7 @@ public class License {
}
private static Map<String, String> getRequestParameters() {
Map<String, String> parameters = new HashMap<String, String>(2);
Map<String, String> parameters = new LinkedHashMap<String, String>(2);
// add standard HTTP headers
parameters.put("Date", DateTimeFormatter.RFC_1123_DATE_TIME.format(ZonedDateTime.now()));