Skip to content

Misparsed requests hang #36

Open
antonvs opened this Issue Dec 7, 2010 · 2 comments

3 participants

@antonvs
antonvs commented Dec 7, 2010

The fileServe functions do not match a URI that is correctly encoded with %20 for spaces, so are unable to serve files with spaces in their names.

This is presumably related to issue #33, however I thought it was worth a separate issue since it prevents Snap from serving certain otherwise ordinary files.

Also, a much more minor related issue is that using a URI containing unencoded spaces results in an empty response from Snap after 30 seconds, presumably because the request line was not successfully parsed. By comparison, Apache succeeds in parsing such lines immediately, but appears to parse only up to the first space, which then typically results in a 404 error. I haven't checked the HTTP spec on this - it might be better to returned some sort of "malformed request" error.

@mightybyte
Snap Framework member

Fixed the fileServe part of this issue. The unencoded space "hang" still needs to be fixed.

@snapframework

Renamed the issue for bookkeeping.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.