adamcin / httpsig-java

Implementation of HTTP Signature Authentication in Java
http://adamcin.net/httpsig-java
The Unlicense
16 stars 10 forks source link

Dates are not parsed properly #9

Closed wrygiel closed 7 years ago

wrygiel commented 7 years ago

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.