-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Read path for cookies #106
Conversation
Changed path to Path (http://en.wikipedia.org/wiki/HTTP_cookie) This patch fixes bug: TypeError: Cannot read property 'url' of undefined (request/vendor/cookie/index.js:49:20)
It's useless to do
Furthermore: there are websites sending path with a lower case 'p', so we need something more robust here; something like:
|
Checking case sensitive for path
+1 for getting this fixed. I recently saw:
|
@kitek, looks good, furthermore also a +1 for this to be fixed, have this quite often. |
@kitek Good job, you fixed the issue. When will it be merged ? You can reproduce it easily
|
+1 for this patch. This issue renders |
|
+1, please merge quickly so I don't have to tell everybody in my team how to change their libs by hand ;) |
+1 I have the same problem when hitting different sites. |
How to apply this patch on Heroku? Heroku doesn't read the node_modules folder. :/ [SOLUTION] To use this patch on Heroku, I moved /node_modules/request to /request and then I changed the require from
to
|
I propose the following change, making it read the key as lower case all the time. At the moment it seems like it is expecting "path" to be in lower-case when in fact the RFC (http://www.ietf.org/rfc/rfc2109.txt) says it should be with a capital P. I do however think that it would be smart to change all the keys to lower case to ensure maximum compatibility with different web-servers. Line 27 - 32:
The change is from |
I don't know how the request library is still usable for anyone with this regression. As a temporary measure, I've forked the library and applied the patches suggested above. If you are using request directly in a project, you can change your package.json to use the forked copy of the lib like this:
|
this doesn't merge cleanly |
Well, I guess we don't need this one since #121 got merged, or am I missing something? |
closing, i think this is already fixed. |
Changed path to Path (http://en.wikipedia.org/wiki/HTTP_cookie) in vendor/cookie/index.js:43-44
This patch fixes bug: TypeError: Cannot read property 'url' of undefined
Code to reproduce error: