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.tryParseDate
makes use ofSimpleDateFormat
without supplying aLocale
. 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.