header validation incorrectly splits dates in headers

Issue #136 resolved
Former user created an issue

https://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html states that dates in headers should be of form Sun, 06 Nov 1994 08:49:37 GMT

however validation splits into "Sun" and "06 Nov 1994 08:49:37 GMT"

This admittedly is a contradiction with https://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.2 which says a comma seperates multiple values.

Suggest fix is to check for date format and only split if it isn't a date.

Comments (5)

  1. James Navin

    Cheers! You'll need to fork the repo and push your changes there, then raise a PR from that fork back to this repo.

  2. Log in to comment