-
Notifications
You must be signed in to change notification settings - Fork 0
Comparing changes
Open a pull request
base repository: zwxalgorithm/http-parser
base: 5c17dad
head repository: nodejs/http-parser
compare: ec8b5ee
- 16 commits
- 7 files changed
- 8 contributors
Commits on Sep 24, 2019
-
Use -f option when calling ln at install time
This allows "make install; make install" to work properly. Retrieved from: https://git.buildroot.net/buildroot/tree/package/libhttpparser/0001-Use-f-option-when-calling-ln-at-install-time.patch PR-URL: nodejs#492 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Renaud AUBIN <root@renaud.io> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Configuration menu - View commit details
-
Copy full SHA for 28f3c35 - Browse repository at this point
Copy the full SHA 28f3c35View commit details
Commits on Feb 6, 2020
-
Support multi-coding Transfer-Encoding
`Transfer-Encoding` header might have multiple codings in it. Even though llhttp cares only about `chunked`, it must check that `chunked` is the last coding (if present). ABNF from RFC 7230: ``` Transfer-Encoding = *( "," OWS ) transfer-coding *( OWS "," [ OWS transfer-coding ] ) transfer-coding = "chunked" / "compress" / "deflate" / "gzip" / transfer-extension transfer-extension = token *( OWS ";" OWS transfer-parameter ) transfer-parameter = token BWS "=" BWS ( token / quoted-string ) ``` However, if `chunked` is not last - llhttp must assume that the encoding and size of the body is unknown (according to 3.3.3 of RFC 7230) and read the response until EOF. For request - the error must be raised for an unknown `Transfer-Encoding`. Furthermore, 3.3.3 of RFC 7230 explicitly states that presence of both `Transfer-Encoding` and `Content-Length` indicates the smuggling attack and "ought to be handled as an error". For the lenient mode: * Unknown `Transfer-Encoding` in requests is not an error and request body is simply read until EOF (end of connection) * Only `Transfer-Encoding: chunked` together with `Content-Length` would result an error (just like before the patch) PR-URL: nodejs-private/http-parser-private#4 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 7d5c99d - Browse repository at this point
Copy the full SHA 7d5c99dView commit details -
Configuration menu - View commit details
-
Copy full SHA for a0c034c - Browse repository at this point
Copy the full SHA a0c034cView commit details
Commits on Feb 13, 2020
-
Correct test name and numbering
It doesn't matter yet, but two tests had the same name, and same test position macro. PR-URL: nodejs#497 Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 1c02cb9 - Browse repository at this point
Copy the full SHA 1c02cb9View commit details
Commits on Mar 24, 2020
-
Fix ABI breakage introduced in commit 7d5c99d ("Support multi-coding Transfer-Encoding") by undoing the change in `sizeof(http_parser)`. Restore the size of the `flags` field and shrink the `index` field from 7 to 5 bits. It track strings up to `strlen("Transfer-Encoding")` bytes so 2^5 == 32 is wide enough. Fixes: nodejs#502 PR-URL: nodejs#503 Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 714cbb2 - Browse repository at this point
Copy the full SHA 714cbb2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2343fd6 - Browse repository at this point
Copy the full SHA 2343fd6View commit details
Commits on Apr 14, 2020
-
Add a first fuzzer for the parser.
PR-URL: nodejs#506 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 7af127d - Browse repository at this point
Copy the full SHA 7af127dView commit details
Commits on Apr 28, 2020
-
Add another fuzzer for the urls.
PR-URL: nodejs#508 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for eefbf87 - Browse repository at this point
Copy the full SHA eefbf87View commit details
Commits on May 4, 2020
-
Solaris 9 doesn't have stdint.h, use inttypes.h
PR-URL: nodejs#184 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Configuration menu - View commit details
-
Copy full SHA for 55e736c - Browse repository at this point
Copy the full SHA 55e736cView commit details
Commits on May 5, 2020
-
PR-URL: nodejs#511 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Configuration menu - View commit details
-
Copy full SHA for 805a0d1 - Browse repository at this point
Copy the full SHA 805a0d1View commit details
Commits on May 11, 2020
-
Update http_parser.content_length doc comment.
It's -1 when no Content-Length field is present, not 0. Fixes: nodejs#512 PR-URL: nodejs#513 Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 5c5b3ac - Browse repository at this point
Copy the full SHA 5c5b3acView commit details
Commits on May 15, 2020
-
The operands to `+` are promoted from `uint16_t` to `int` before addition, making the expression `off + len <= buflen` emit a warning because `buflen` is unsigned. Fixes: nodejs#514 PR-URL: nodejs#515 Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for d9275da - Browse repository at this point
Copy the full SHA d9275daView commit details
Commits on Jul 8, 2020
-
Test Content-Length header parsing.
The test suite did very little validation of the Content-Length field until now. Verify for each request and response that the parsed numeric value matches the value from the header field. PR-URL: nodejs#519 Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 4b99e42 - Browse repository at this point
Copy the full SHA 4b99e42View commit details
Commits on Jul 10, 2020
-
Allow Content-Length and Transfer-Encoding: chunked
Fixes: nodejs#517 PR-URL: nodejs#518 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Pierce Lopez <pierce.lopez@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for e13b274 - Browse repository at this point
Copy the full SHA e13b274View commit details -
Fix sizeof(http_parser) assert
The result should be 32 on both 32 bits and 64 bits x86 because of struct padding. Fixes: nodejs#507 PR-URL: nodejs#510 Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 4f15b7d - Browse repository at this point
Copy the full SHA 4f15b7dView commit details
Commits on Oct 2, 2020
-
doc: add maintenance notice to readme
I'm moving on and as the last (semi-)active maintainer, that means http-parser is now effectively unmaintained. Refs: nodejs#522 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Configuration menu - View commit details
-
Copy full SHA for ec8b5ee - Browse repository at this point
Copy the full SHA ec8b5eeView commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff 5c17dad...ec8b5ee