The RequestContent.tryParseDate makes use of SimpleDateFormat without supplying a Locale. In this case, SimpleDateFormat makes use of the default system locale, which is not necessarily compatible with RFC 1123.
The result is that on some systems valid Date headers are not parsed.
The
RequestContent.tryParseDatemakes use ofSimpleDateFormatwithout supplying aLocale. In this case,SimpleDateFormatmakes use of the default system locale, which is not necessarily compatible with RFC 1123.The result is that on some systems valid
Dateheaders are not parsed.