Permalink
Commits on Apr 14, 2012
  1. @bnoordhuis
Commits on Jan 6, 2012
  1. @koichik @ry

    Fix response body is not read

    With HTTP/1.1, if neither Content-Length nor Transfer-Encoding is present,
    section 4.4 of RFC 2616 suggests http-parser needs to read a response body
    until the connection is closed (except the response must not include a body)
    
    See also nodejs/node-v0.x-archive#2457.
    Fixes #72
    koichik committed with ry Jan 4, 2012
Commits on Dec 13, 2011
  1. @ry

    Fix compilation on MSVC 2008 which doesn't bundle stdint.h

    Thanks to Steve Ridout for the patch. Fixes #69.
    ry committed Dec 13, 2011
Commits on Nov 22, 2011
  1. @felixge @ry
Commits on Oct 2, 2011
  1. @pquerna
Commits on Aug 29, 2011
  1. @clifffrey

    Merge pull request #61 from bnoordhuis/master

    Single-bit bitfield 'upgrade' should be unsigned.
    clifffrey committed Aug 29, 2011
  2. @bnoordhuis

    Single-bit bitfield 'upgrade' should be unsigned.

    Fixes sparse error report: dubious one-bit signed bitfield.
    bnoordhuis committed Aug 29, 2011
Commits on Aug 7, 2011
  1. @ry

    Peter Bright's VC fixes

    ry committed Aug 7, 2011
Commits on Aug 6, 2011
  1. @ry

    Support MSVS

    ry committed Aug 6, 2011
  2. @ry
Commits on Jul 24, 2011
  1. @pgriess

    Merge pull request #57 from fmardini/master

    A struct member rename for compatibility with errno.h
    pgriess committed Jul 24, 2011
  2. @fmardini

    rename parser->errno to parser->http_errno; conflicts with errno.h wh…

    …ere errno is defined as a macro
    fmardini committed Jul 24, 2011
Commits on Jul 20, 2011
  1. @pgriess
  2. @pgriess

    Merge pull request #54 from pgriess/path-query-frag-callbacks

    API CHANGE: Remove path, query, fragment CBs.
    pgriess committed Jul 20, 2011
  3. @pgriess

    API CHANGE: Remove path, query, fragment CBs.

    - Get rid of support for these callbacks in http_parser_settings.
    - Retain state transitions between different URL portions in
      http_parser_execute() so that we're making the same correctness
      guarantees as before.
    - These are being removed because making multiple callbacks for the same
      byte makes it more difficult to pause the parser.
    pgriess committed Jul 16, 2011
  4. @pgriess

    Merge pull request #53 from pgriess/callback_noclear

    Get rid of CALLBACK_NOCLEAR().
    pgriess committed Jul 20, 2011
  5. @pgriess

    Merge pull request #52 from pgriess/errno

    Break out errno into its own field.
    pgriess committed Jul 20, 2011
Commits on Jul 9, 2011
  1. @pgriess

    Get rid of CALLBACK_NOCLEAR().

    - This was only used by CALLBACK() (which then cleared the mark anyway),
      and the end of the http_parser_execute() body (after which they
      go out of scope).
    pgriess committed Jul 9, 2011
  2. @pgriess
Commits on Jun 20, 2011
  1. @pgriess

    Merge pull request #51 from kolbyjack/is_alpha

    Group POST refinements, test all request methods, make IS_ALPHA use LOWER
    pgriess committed Jun 20, 2011
  2. @kolbyjack
Commits on Jun 19, 2011
  1. @pgriess

    Re-jigger Makefile.

    - Uses more standard $CFLAGS and $CPPFLAGS variables to populate the set
      of flags to build with.
    - Allow extending compilation and linking flags with
      $CPPFLAGS_DEBUG_EXTRA, $CPPFLAGS_FAST_EXTRA, $CFLAGS_DEBUG_EXTRA, and
      $CFLAGS_FAST_EXTRA.
    
    Closes #40.
    pgriess committed Jun 19, 2011
  2. @pgriess

    Merge pull request #43 from pgriess/error-reporting

    Facility to report detailed parsing errors.
    pgriess committed Jun 19, 2011
  3. @pgriess

    Facility to report detailed parsing errors.

    - Add http_errno enum w/ values for many parsing error conditions. Stash
      this in http_parser.state if the 0x80 bit is set.
    - Report line numbers on error generation if the (new) HTTP_PARSER_DEBUG
      cpp symbol is set. Increases http_parser struct size by 8 bytes in
      this case.
    - Add http_errno_*() methods to help turning errno values into
      human-readable messages.
    pgriess committed May 23, 2011
  4. @pgriess
  5. @pgriess

    Merge pull request #49 from pgriess/upgrade-off-by-one

    Fix off-by-one in handling upgrade bodies.
    pgriess committed Jun 19, 2011
Commits on Jun 18, 2011
  1. @pgriess

    Fix off-by-one in handling upgrade bodies.

    - When handling upgraded bodies, http_parser_execute() used to return
      one fewer bytes parsed than expected. This caused the final LF to be
      interpreted by the caller as part of the body.
    - Add a bunch of upgrade body unit tests.
    pgriess committed Jun 18, 2011
  2. remove unused LOWER(ch)

    Cliff Frey committed Jun 18, 2011
  3. @clifffrey

    Merge pull request #48 from kolbyjack/master

    Allow uppercase chars in IS_ALPHANUM
    clifffrey committed Jun 18, 2011
  4. @kolbyjack
Commits on Jun 11, 2011
  1. @pgriess

    Merge pull request #27 from a2800276/master

    lowercasing in header after check for CR LF
    pgriess committed Jun 11, 2011
  2. @pgriess

    Merge pull request #46 from kolbyjack/master

    Also return error for bad requests starting with M or C
    pgriess committed Jun 11, 2011
Commits on Jun 10, 2011
  1. @kolbyjack
Commits on Jun 4, 2011
  1. @clifffrey

    Merge pull request #45 from scunningham/tracking

      Support multi-line folding in header values.
    clifffrey committed Jun 4, 2011
Commits on Jun 3, 2011
  1. @scunningham

    Support multi-line folding in header values.

      Normal value cb is called for subsequent lines.  LWS is skipped.
      Note that \t whitespace character is now supported after header field name.
    
      RFC 2616, Section 2.2
      "HTTP/1.1 header field values can be folded onto multiple lines if the
       continuation line begins with a space or horizontal tab. All linear
       white space, including folding, has the same semantics as SP. A
       recipient MAY replace any linear white space with a single SP before
       interpreting the field value or forwarding the message downstream."
    scunningham committed Apr 29, 2011