Permalink
Commits on Jun 14, 2017
  1. simplify parsing M-SEARCH method, group P methods

    ploxiln committed with indutny Jun 21, 2016
    can use same switch-lookup for '-' char case
    move PROPFIND and PURGE to be next to the other P methods
    
    change IS_ALPHA(ch) to  A <= ch <= Z
    (very slight optimization, only uppercase will match in switch)
    
    PR-URL: #323
    Reviewed-By: Fedor Indutny <fedor@indutny.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
  2. Fix FALLTHROUGH warning in switch of GCC7

    misery committed with indutny Mar 9, 2017
    PR-URL: #357
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
  3. Makefile: set versions for SONAME correctly

    grobian committed with indutny Mar 14, 2017
    Raised in issue #356, reduce version number in SONAME to MAJOR.MINOR.
    While at it, create a symlink the from SONAME to the library, instead of
    the other way around, and add a (standard) unversioned symlink to the
    library to aid the ordinary linking process.
    
    PR-URL: #359
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Fedor Indutny <fedor@indutny.com>
  4. Include stddef.h instead of sys/types.h.

    gatzka committed with indutny Mar 15, 2017
    The include is required for type size_t. stddef.h should be available
    on every platform, sys/types.h is not.
    
    PR-URL: #360
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
  5. Ignore Upgrade header outside of 101 response.

    bnoordhuis committed with indutny Apr 14, 2017
    PR-URL: #364
    Reviewed-By: Fedor Indutny <fedor@indutny.com>
  6. Fix typo in test name.

    bnoordhuis committed with indutny Apr 14, 2017
    PR-URL: #364
    Reviewed-By: Fedor Indutny <fedor@indutny.com>
  7. Tolerate non-compliant status line responses

    fake666 committed with indutny May 20, 2017
    - original fix is from daeon: https://github.com/daeon/http-parser/
    
      "Tolerate web servers which do not return a status message in the
       return response.
    
       I have noticed this usse on several websites such downloads from
       mediafire.com"
    
    - original pull request: #254
    - i merely added the status_cb_called unit test check, there already
      is a test that triggers this without the patch (a 301 without a
      reason phrase).
    
    PR-URL: #367
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    Reviewed-By: Fedor Indutny <fedor@indutny.com>
Commits on May 24, 2017
  1. parser: fix HTTP version parsing

    mscdex committed with indutny May 16, 2017
    Only one digit is allowed for the major version and only one is
    allowed for the minor version according to RFC 7230.
    
    PR-URL: #366
    Reviewed-By: Fedor Indutny <fedor@indutny.com>
Commits on Oct 18, 2016
  1. parser: HTTP_STATUS_MAP(XX) and enum http_status

    npmccallum committed with indutny Oct 6, 2016
    This patch provides an enum for the standardized HTTP status codes.
    Additionally, the HTTP_STATUS_MAP(XX) can be used for other purposes as
    well, such as code-to-name lookups and code-based switch statements.
    
    PR-URL: #337
    Reviewed-By: Fedor Indutny <fedor@indutny.com>
    Reviewed-By: Brian White <mscdex@mscdex.net>
    Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Commits on Jul 17, 2016
  1. Bump version to 2.7.1

    indutny committed Jul 17, 2016
  2. parser: fix Content-Length header parsing.

    bnoordhuis committed with indutny Jul 3, 2016
    Commit e2e467b ("Update http-parser to 2.6.1") enforces that messages
    contain no more than one Content-Length header but it considers any
    header that starts with "Content-Length" as a duplicate.
    
    Fix: #324
    PR-URL: #325
    Reviewed-By: Fedor Indutny <fedor@indutny.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
Commits on Jun 23, 2016
  1. test: remove ‘nread’, which is not used

    guoxiao committed with indutny Apr 22, 2016
    PR-URL: #300
    Reviewed-By: Fedor Indutny <fedor@indutny.com>
Commits on Jun 1, 2016
  1. readme: improve format, fix code syntax

    oldratlee committed with indutny May 4, 2016
    PR-URL: #305
    Reviewed-By: Fedor Indutny <fedor@indutny.com>
Commits on Apr 25, 2016
  1. src: put `assert()` after var declarations

    Jonathan Marler committed with indutny Mar 15, 2016
    Microsoft C++ compiler fails when this assert appears before the
    declarations. Moved assert to appear after the declarations.
    
    PR-URL: #293
    Reviewed-By: Fedor Indutny <fedor@indutny.com>
Commits on Apr 19, 2016
  1. Bump version to 2.6.0

    indutny committed Apr 19, 2016
  2. parser: returning 2 from on_headers_complete

    indutny committed Apr 16, 2016
    Returning `2` from on_headers_complete will tell parser that it
    should not expect neither a body nor any futher responses on
    this connection. This is useful for handling responses to a
    CONNECT request which may not contain `Upgrade` or
    `Connection: upgrade` headers.
    
    See: nodejs/node#6198
    PR-URL: #299
    Reviewed-By: Brian White <mscdex@mscdex.net>
Commits on Mar 4, 2016
  1. test: add a test for for obstext characters (> 0x80)

    jbergstroem committed with jasnell Feb 27, 2016
    Create a test added for nodejs in nodejs/node@954a4b4.
    
    PR-URL: #287
    Reviewed-By: James M Snell <jasnell@gmail.com>
  2. Update http-parser to 2.6.2

    jbergstroem committed with jasnell Feb 27, 2016
    Fixes a header parsing bug for obstext characters (> 0x80)
    
    Adaption of nodejs/node@954a4b4:
    
        Author: James M Snell <jasnell@gmail.com>
        Date:   Mon Feb 15 09:40:58 2016 -0800
    
        deps: update to http-parser 2.6.2
    
        Fixes http-parser regression with IS_HEADER_CHAR check
        Add test case for obstext characters (> 0x80) is header
    
        PR-URL: nodejs/node#5237
        Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
        Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
        Reviewed-By: Myles Borins <myles.borins@gmail.com>
    
    PR-URL: #287
    Reviewed-By: James M Snell <jasnell@gmail.com>
Commits on Feb 27, 2016
  1. src: refactor method parsing

    dolmen committed with indutny Oct 12, 2015
    Use a switch and a macro to branch parsing of HTTP methods.
    Easier to read and much shorter.
    
    In this commit, the order of branches dispatching is the same as in the
    original code, to ease review. Reordering branches by descending
    frequency will improve speed too.
    
    PR-URL: #273
    Reviewed-By: Fedor Indutny <fedor@indutny.com>
Commits on Feb 10, 2016
  1. test: Assert against correct error messages

    jbergstroem committed with jasnell Feb 10, 2016
    PR-URL: #279
    Reviewed-By: James M Snell <jasnell@gmail.com>
  2. Update http-parser to 2.6.1

    jasnell committed Feb 10, 2016
    Includes parsing improvements to ensure closer HTTP spec conformance
    
    Adaption of nodejs/node@4f4c8ab:
    
        Author: James M Snell <jasnell@gmail.com>
        Date:   Wed Feb 3 17:28:48 2016 -0800
    
        deps: update http-parser to version 2.6.1
    
        includes parsing improvements to ensure closer HTTP spec conformance
    
        PR-URL: nodejs-private/node-private#26
        Reviewed-By: Rod Vagg <r@va.gg>
        Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
        Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
    
    PR-URL: #279
    Reviewed-By: James M Snell <jasnell@gmail.com>
Commits on Jan 11, 2016
  1. readme: fix build status badge

    geek committed with indutny Jan 7, 2016
    PR-URL: #277
    Reviewed-By: Fedor Indutny <fedor@indutny.com>
Commits on Oct 29, 2015
  1. Bump version to 2.6.0

    jasnell committed Oct 29, 2015
Commits on Oct 27, 2015
  1. src: introduce `http_parser_url_init`

    indutny committed with jasnell Feb 24, 2015
    The struct must be zero-initialized, but this wasn't explicitly stated
    anywhere in headers. Introduce `http_parser_url_init` API method that
    will do it.
    
    Fixes: #209
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Brian White <mscdex@mscdex.net>
    PR-URL: #225
Commits on Oct 26, 2015
  1. doc: updated README.md to include multi-threading example

    lberezy committed with jasnell Jun 28, 2015
    Included information and example on communicating data between
    thread local and callback scopes. This shows how http-parser
    can be used in a multi-threaded context.
    
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Fedor Indutny <fedor@indutny.com>
    PR-URL: #256
  2. src: support LINK/UNLINK (RFC 2068, draft-snell-link-method)

    dolmen committed with jasnell Oct 12, 2015
    Add support for HTTP methods LINK and UNLINK originally defined in RFC2068
    section 19.6.2.2, but with semantic added in a Internet draft.
    https://tools.ietf.org/html/rfc2068#section-19.6.1.2
    https://tools.ietf.org/html/draft-snell-link-method-12
    
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Fedor Induty <fedor@indutny.com>
    PR-URL: #267
Commits on Jul 23, 2015
  1. src: fixed compile error C2143 for vs2012

    sebastian-philipp committed with indutny Jul 22, 2015
    PR-URL: #261
    Reviewed-By: Fedor Indutny <fedor@indutny.com>
  2. header: treat Wine like MinGW

    Tatsh committed with indutny Jul 12, 2015
    PR-URL: #259
    Reviewed-By: Fedor Indutny <fedor@indutny.com>
Commits on Jul 21, 2015
  1. src: support ACL (WebDAV, RFC3744, Section 8.1).

    Hywan committed with indutny Apr 24, 2015
    PR-URL: #260
    Reviewed-By: Fedor Indutny <fedor@indutny.com>
Commits on Jul 19, 2015
  1. readme: update WebSocket link to RFC6455

    Hywan committed with indutny Apr 24, 2015
    PR-URL: #240
    Reviewed-By: Fedor Indutny <fedor@indutny.com>
Commits on Jul 16, 2015
  1. test: `SEARCH`, `PURGE` and `MKCALENDAR`

    Hywan committed with indutny Apr 24, 2015
    These methods are defined in `http_parser.h` but not tested.
    
    PR-URL: #241
    Reviewed-By: Fedor Indutny <fedor@indutny.com>
  2. src: support BIND/REBIND/UNBIND (WebDAV, RFC5842)

    Hywan committed with indutny Apr 24, 2015
    Support BIND/REBIND/UNBIND methods, see sections 4, 5, 6 of
    RFC5842.
    
    PR-URL: #242
    Reviewed-By: Fedor Indutny <fedor@indutny.com>
Commits on Jul 5, 2015
  1. src: support IPv6 Zone ID as per RFC 6874

    tatsuhiro-t committed with indutny Jun 18, 2015
    IPv6 scoped address contains Zone ID, which is appended to IPv6
    address after '%' separator.  RFC 6874 says that Zone ID after '%'
    must consist of 1*(unreserved or pct-encoded).  This commit adds this
    IPv6 Zone ID support.
    
    PR-URL: #253
    Reviewed-By: Fedor Indutny <fedor@indutny.com>
Commits on Jul 4, 2015
  1. src: use ARRAY_SIZE instead of sizeof()

    deleisha committed with indutny Jun 12, 2015
    PR-URL: #252
    Reviewed-By: Fedor Indutny <fedor@indutny.com>
Commits on May 21, 2015
  1. src: remove double check

    jscissr committed with indutny May 20, 2015
    This is already included in `http_message_needs_eof`.
    
    PR-URL: #248
    Reviewed-By: Fedor Indutny <fedor@indutny.com>