Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Commits on May 24, 2011
  1. @ry

    Add 'package' target in Makefile which produces libhttp_parser.a

    Salman authored ry committed
  2. @ry
  3. @pgriess @ry

    Expose F_* flags as public API.

    pgriess authored ry committed
    Fixes #42.
Commits on May 15, 2011
  1. @ry
Commits on May 12, 2011
  1. @ry

    bump to v1.0

    ry authored
Commits on May 11, 2011
  1. @pgriess @ry

    Support ?-terminated hostnames per RFC 2396.3.2.

    pgriess authored ry committed
    - Bust out of s_req_host and s_req_port on '?'.
    - Add tests for query string parsing.
    Fixes #38.
  2. @pgriess @ry

    Allow octets > 127 in path components.

    pgriess authored ry committed
    - This is non-spec behavior, but it appears that most HTTP servers
      implicitly support non-ASCII characters when parsing path components.
      Extend http-parser to allow this.
    - Fill out slots [128, 256) in normal_url_char[] with 1 so that these
      high octets are accepted in path components.
    - Add unit test for paths that include such non-ASCII characters.
    Fixes #37.
Commits on Mar 22, 2011
  1. @ry

    Update copyright headers

    ry authored
Commits on Feb 25, 2011
  1. @scunningham @ry

    Avoid chunk header parsing overflow.

    scunningham authored ry committed
    Recharacterize the chunk header states such that they are bound by the check
  2. @scunningham @ry

    Avoid chunk trailer overflow.

    scunningham authored ry committed
    Check for overflow during chunk trailer by removing unnecessary check in macro PARSING_HEADER.  This will force the parser to abort if the chunk trailer contains more than HTTP_MAX_HEADER_SIZE of data.
Commits on Feb 4, 2011
  1. @ry

    Detect errors on EOF

    ry authored
Commits on Jan 26, 2011
  1. @ry

    Add hack for tmm1

    ry authored
Commits on Nov 22, 2010
  1. @TooTallNate @ry
  2. @TooTallNate @ry

    Add support for "M-SEARCH" and "NOTIFY" request methods.

    TooTallNate authored ry committed
    Allow a request path of "*" (for SSDP requests).
Commits on Nov 11, 2010
  1. @ry
  2. @TooTallNate @ry

    Set http_major when a request omits the HTTP version

    TooTallNate authored ry committed
    I.E. "GET /" in telnet
  3. @tmm1 @ry

    Fix build issues using mingw32 on windows

    tmm1 authored ry committed
  4. @ry
  5. @ry
  6. @ry
  7. @ry

    Remove acceptable_header array

    Cliff Frey authored ry committed
    This was not necessary, as it was just being used as a downcase
Commits on Nov 5, 2010
  1. @ry

    Add non-ascii in status line test

    ry authored
    from Ben Noordhuis
  2. @ry
  3. @ewencp @ry

    Provide typedefs instead of using stdint.h on Windows.

    ewencp authored ry committed
Commits on Oct 20, 2010
  1. @ry

    readme typo (thanks tmm1)

    ry authored
Commits on Oct 12, 2010
  1. @TooTallNate @ry

    Allow whitespace in the 'Content-Length' header.

    TooTallNate authored ry committed
Commits on Sep 12, 2010
  1. @ry

    avoid assertion failure in error case

    Cliff Frey authored ry committed
    Without this change, it is possible to get an assertion to fail by
    continuing to call http_parser_execute after it has returned an error.
    Specifically, the parser could be called with parser->state ==
    s_chunk_size_almost_done and parser->flags & F_CHUNKED set.  Then,
    F_CHUNKED could have been cleared, and an error could be hit.  In this
    case, the parser would have returned with F_CHUNKED clear, but
    parser->state == s_chunk_size_almost_done, resulting in an assertion
    failure on the next call.
    There are alternate solutions possible, including just saving all of
    the fields (state included) on error.
    I didn't add a test case because this is a bit annoying to test, but I
    can add one if necesssary.
Commits on Aug 27, 2010
  1. @bnoordhuis @ry

    Replace C++ style comments with C comments so it compiles with `gcc -…

    bnoordhuis authored ry committed
    …ansi -Wall`
Commits on Aug 18, 2010
  1. @ry

    save 8 bytes in http_parser structure

    Cliff Frey authored ry committed
    nread can never be larger than HTTP_MAX_HEADER_SIZE
  2. @ry

    Array type cleanups. Also save space

    Cliff Frey authored ry committed
    acceptable_header[x] is always assigned to a variable of type char, so
    the 'unsigned' is unnecessary.
    The other arrays can be of type int8_t/uint8_t to save space.
  3. @ry

    fixes for architectures with signed char default

    Cliff Frey authored ry committed
    This could have resulted in memory before the normal_url_char array
    being read on architectures with signed char default.
Commits on Jul 31, 2010
  1. @ry

    Changes to compile with clang

    ry authored
  2. @ry

    Use lookup tables of my own.

    ry authored
Commits on Jul 30, 2010
  1. @jterrace @ry

    Initialize method member to avoid falsely upgrading connections. Fixe…

    jterrace authored ry committed
    …d Issue #7
  2. @ry


    ry authored
Something went wrong with that request. Please try again.