| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
Can one of the admins verify this patch? |
Sorry, something went wrong.
|
Can one of the admins verify this patch? |
Sorry, something went wrong.
|
Can one of the admins verify this patch? |
Sorry, something went wrong.
|
Can one of the admins verify this patch? |
Sorry, something went wrong.
|
Can one of the admins verify this patch? |
Sorry, something went wrong.
| ) { | ||
| return this._headers[header]; | ||
| for (var i in this._headers) { | ||
| if (i.toLowerCase() === header.toLowerCase()) { |
There was a problem hiding this comment.
You could cache the call to header.toLowerCase() instead of make it always.
Sorry, something went wrong.
|
Is it possible to add a unit-test? |
Sorry, something went wrong.
According to the RFC: https://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.2 "Field names are case-insensitive". For instance, Google Cloud Endpoints use "content-type" in the response.
|
@hshristov I cached the lowercase header and added a unit test. |
Sorry, something went wrong.
|
run ci |
Sorry, something went wrong.
|
@emelois Thank you for your contribution. PR will be live with the next official release - 2.1.0 |
Sorry, something went wrong.
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
According to the RFC: https://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.2
"Field names are case-insensitive".
For instance, Google Cloud Endpoints use "content-type" in the response.