-
-
Notifications
You must be signed in to change notification settings - Fork 41
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
using localhost as test server locally fails #27
Comments
I'm running in to this issue as well, here's some more details: when requesting a local site via a browser, here's the headers I get:
However, when requesting through the proxy, I get these headers:
So, a few things are different, the cookie and ETag shouldn't matter, but the content-length is definitely wrong, and the proxy is sending "close" instead of "keep-alive" (not sure if that's an issue, but could be related to the incorrect content length). I think the issue probably exists in proxy.js, not sure why it would act differently locally as opposed to when requesting from a live site. Not sure if any of that is helpful, but I figured I'd throw the info out in case it helps. |
…g to add the length of the insert.
The above fix solves this - looks like node is sending a string as content-length, which causes the content-length to be wrong, and the request fails. I'm seeing this in express 3.x, but if @AndreasMadsen's example fails as well, it may be lower level. In any case, a quick parseInt in proxy.js fixes this. |
I reproduces this on a mac, where I updated browser-launcher to 0.2.0
To reproduce run this testing file with
testling example/localhost.js --browser=chrome
.The localhost server looks like this:
It should be noted that
testling example/window.js --browser=chrome
works perfectly!The text was updated successfully, but these errors were encountered: