Closed GoogleCodeExporter closed 9 years ago
Another data point is that I am using Windows, while I believe zcorpan is using
Linux.
Original comment by googlere...@notcharles.ca
on 27 Oct 2010 at 4:13
That last comment was by me - was signed in with the wrong account.
Original comment by jma...@rim.com
on 27 Oct 2010 at 4:18
This bug also causes the connection to be refused by conforming clients if a
query is used, since Sec-WebSocket-Location doesn't match the requested
location.
Original comment by zcor...@gmail.com
on 28 Oct 2010 at 7:25
The HyBi 07 protocol, the latest spec as of this writing, doesn't use
Sec-WebSocket-Location
http://tools.ietf.org/html/draft-ietf-hybi-thewebsocketprotocol-07
So there is not much point fixing this now. Sorry.
Original comment by yuzo@chromium.org
on 25 Apr 2011 at 11:34
Please reopen.
That Sec-WebSocket-Location was removed does not invalidate this bug. It is
still useful to be able to read the query part of the URL.
I'm not sure why `uri` is different on different setups (bug in python's
request members?), but maybe `parsed_uri[6]` more consistently gives the path.
The query should be available from `parsed_uri[7]` or `args`, from my
understanding of
http://modpython.org/live/current/doc-html/pyapi-mprequest-mem.html
Original comment by zcor...@gmail.com
on 7 Mar 2013 at 12:51
We used BaseHTTPRequestHandler.path value as-is to mimic mp_request.uri in
_StandaloneRequest by mistake.
BaseHTTPRequestHandler.path holds the raw data at the Request-URI part of the
Request-Line.
mp_request.uri holds the path portion of the URI obtained by parsing the URI.
According to draft-ietf-hybi-thewebsocketprotocol-00 Section 5.1, we must use
the full raw data, though Section 3.1 of the I-D says /resource name/ is the
<path> component obtained by parsing the URL following the Web address spec.
OK. I'll fix the location building method to use unparsed_uri
Original comment by tyoshino@chromium.org
on 13 Mar 2013 at 5:14
[deleted comment]
Fixed location header generation.
https://code.google.com/p/pywebsocket/source/detail?r=741
For now we leave the behavior of _StandaloneRequest.uri property not to break
existing services. We've added _StandaloneRequest.unparsed_uri property that
behaves the same as run with mod_python. So, now you can use unparsed_uri in
both mod_python mode and standalone mode.
Original comment by tyoshino@chromium.org
on 9 Apr 2013 at 11:28
Original issue reported on code.google.com by
zcor...@gmail.com
on 20 Oct 2010 at 1:57