-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Response Headers should be allowed to be null (or at least empty if not set) #182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@jfarcand I can work on a fix for this. Do you have any objection if I replace everywhere |
@slandelle +1 ! |
OK, will do. |
Thanks for the submission! |
You're welcome. Thanks for this great project! |
I found a bug with what I've done, since I didn't realize that AsyncHttpProviderUtils.parseCharset could return null. |
Salut, no problem, when do you need it? I can do it anytime this week. A+ |
I plan to release on Thursday (France time). Could you release tomorrow, please? |
Parfait! I wil cut the release tomorrow morning. |
* add version to response * fix API breakage by deprecating old init * review fix: use renamed instead of message
Whilst running a Gatling test on a server that does not generate any headers at all I get the following exception:
The problem is that the headers in the response are
null
which causes the exception to be thrown.However, the HTTP Response RFC states that the headers are optional and that only the status line and a single
CRLF
are required.The RFC is at http://www.w3.org/Protocols/rfc2616/rfc2616-sec6.html
with the relevant Augmented BNF being:
where the
*((...))
indicates that 0 or more of the elements after the*
are permitted.Therefore it is not in keeping with the standard to throw an exception if there are no headers, simply to use empty headers if there are none.
The text was updated successfully, but these errors were encountered: