-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure we don't try to show an open FIFOBuffer for requests/responses. …
…Fixes #85
- Loading branch information
Showing
4 changed files
with
30 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1300,7 +1300,7 @@ function parse!(r::Union{Request, Response}, parser, bytes, len=length(bytes); | |
@debug(PARSING_DEBUG, @__LINE__, "exiting maybe unfinished...") | ||
@debug(PARSING_DEBUG, @__LINE__, ParsingStateCode(p_state)) | ||
b = p_state == start_state || p_state == s_dead | ||
he = b | (p_state >= s_headers_done) | ||
he = b | (p_state >= s_chunk_size_start) | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
quinnj
Author
Member
|
||
m = b | (p_state >= s_body_identity_eof) | ||
return errno, he, m, String(bytes[p:end]) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Are you sure this is the right fix?
The patch I posted in #86 was just a speculative hack.
Perhaps the chunk states should be moved to after the header states here:?
https://github.com/JuliaWeb/HTTP.jl/blob/master/src/consts.jl#L292
Perhaps there is some good reason for the sequence to be the way it is?