Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Jun 27, 2014
  1. @helje5 @indutny

    Added support for MKCALENDAR

    helje5 authored indutny committed
    Signed-off-by: Fedor Indutny <fedor@indutny.com>
Commits on Jun 21, 2014
  1. @markmontymark @indutny

    very minor spelling/grammar changes in README.md

    markmontymark authored indutny committed
    Signed-off-by: Fedor Indutny <fedor@indutny.com>
Commits on Jun 18, 2014
  1. @rlidwka @indutny

    signing the CLA is no longer a requirement

    rlidwka authored indutny committed
    Signed-off-by: Fedor Indutny <fedor@indutny.com>
Commits on Apr 10, 2014
  1. @xta @indutny

    fix typo in README comment

    xta authored indutny committed
Commits on Mar 19, 2014
  1. @indutny

    contrib: fixed resource leak in parsertrace

    Alex Butum authored indutny committed
Commits on Mar 17, 2014
  1. @vinniefalco @indutny

    Allow HTTP_MAX_HEADER_SIZE to be defined externally

    vinniefalco authored indutny committed
Commits on Mar 13, 2014
  1. @indutny

    Bump version to 2.3.0

    indutny authored
Commits on Mar 12, 2014
  1. @dpw @indutny

    Fix issues around multi-line headers

    dpw authored indutny committed
    Always discard leading whitespace in a header value, even if it
    is folded.
    
    Pay attention to values of interesting headers (Connection,
    Content-Length, etc.) even when they come on a continuation line.
    
    Add a test case to check that requests and responses using only LF
    to separate lines are handled correctly.
  2. @dpw @indutny

    Include separating ws when folding header values

    dpw authored indutny committed
    The support for folding of multi-line header values does not conform
    to the specs.  Given a request containing
    
        Multi-Line-Header: foo<CRLF>
         bar<CRLF>
    
    http-parser will eliminate the whitespace breaking the header value to
    yield a header value of "foobar".  This is confirmed by the
    LINE_FOLDING_IN_HEADER case in tests.c.
    
    But from rfc2616, section 2.2:
    
       A CRLF is allowed in the definition of TEXT only as part of a header
       field continuation. It is expected that the folding LWS will be
       replaced with a single SP before interpretation of the TEXT value.
    
    And from draft-ietf-httpbis-p1-messaging-25, section 3.2.4:
    
       A server that receives an obs-fold in a request message that is not
       within a message/http container MUST either reject the message by
       sending a 400 (Bad Request), preferably with a representation
       explaining that obsolete line folding is unacceptable, or replace
       each received obs-fold with one or more SP octets prior to
       interpreting the field value or forwarding the message downstream.
    
    So in the example above, the header value should be interpreted as
    "foo bar", possibly with multiple spaces.  The current http-parser
    behaviour of eliminating the LWS altogether clearly deviates from the
    specs.
    
    For http-parser itself to confirm exactly would involve significant
    changes in order to synthesize replacement SP octets.  Such changes
    are unlikely to be worth it to support what is an obscure and
    deprecated feature.  But http-parser should at least preserve some
    separating whitespace when folding multi-line header values, so that
    applications using http-parser can conform to the specs.
    
    This commit is a minimal change to preserve whitespace when folding
    lines.  It eliminates the CRLF, but retains any trailing and leading
    whitespace in the header value.
Commits on Jan 28, 2014
  1. @indutny

    Bump version to 2.2.1

    indutny authored
Commits on Jan 27, 2014
  1. @orangemocha @indutny

    fix content-length and chunk-size overflow test

    orangemocha authored indutny committed
    The overflow check didn't work for all possible inputs.
Commits on Jan 25, 2014
  1. @runner-mei @indutny

    add vc project files to .gitignore

    runner-mei authored indutny committed
Commits on Dec 20, 2013
  1. @indutny

    Bump version to 2.2

    indutny authored
  2. @indutny
Commits on Dec 19, 2013
  1. @indutny

    test: fix build on osx

    indutny authored
  2. @VanCoding @indutny

    Parse and emit status message of response

    VanCoding authored indutny committed
Commits on Nov 19, 2013
  1. @charliesome @bnoordhuis

    Use unsigned int as bitfield type.

    charliesome authored bnoordhuis committed
Commits on Oct 24, 2013
  1. @ulikoehler @bnoordhuis

    Add syntax highlighting to README C code

    ulikoehler authored bnoordhuis committed
Commits on Oct 21, 2013
  1. @bnoordhuis

    Update misleading comment.

    bnoordhuis authored
    The HTTP_MAX_HEADER_SIZE check is not there to guard against
    buffer overflows, it's there to protect unwitting embedders
    against denial-of-service attacks.
  2. @bnoordhuis
Commits on Aug 21, 2013
  1. @bnoordhuis
  2. @chrisdickinson @bnoordhuis

    Do not accept PUN/GEM methods as PUT/GET.

    chrisdickinson authored bnoordhuis committed
    * Encountering them returns an error, `HPE_INVALID_METHOD`
    * Tests have been added.
  3. @bnoordhuis
Commits on Jun 13, 2013
  1. @bnoordhuis
Commits on Mar 26, 2013
  1. @bnoordhuis

    Bump to version 2.1

    bnoordhuis authored
Commits on Jan 22, 2013
  1. @bnoordhuis

    Update AUTHORS and .mailmap

    bnoordhuis authored
Commits on Jan 16, 2013
  1. @cmr @bnoordhuis

    doc: add travis build status link

    cmr authored bnoordhuis committed
Commits on Dec 19, 2012
  1. @bnoordhuis
Commits on Dec 17, 2012
  1. @bnoordhuis

    Update AUTHORS and .mailmap

    bnoordhuis authored
  2. @tomika @bnoordhuis

    Add on_status_complete callback.

    tomika authored bnoordhuis committed
    Add a "status complete" callback to support Simple-Response handling with HTTP
    version <= 1.0.
    
    Patch by Tóth Tamás, tests by Corey Richardson.
Commits on Dec 16, 2012
  1. @cmr @bnoordhuis

    Add a simple utility to dump events as they happen

    cmr authored bnoordhuis committed
Commits on Dec 12, 2012
  1. @thomaslim @bnoordhuis

    Update AUTHORS

    thomaslim authored bnoordhuis committed
  2. @udp @bnoordhuis

    Fix MSVS 2005 and 2008 missing size_t typdef.

    udp authored bnoordhuis committed
    Replace manual size_t typedef with stddef.h include
    
    Fixes #128, #141.
Commits on Dec 5, 2012
  1. @cmr @bnoordhuis

    Fix unmatched quote in dump_url output.

    cmr authored bnoordhuis committed
  2. @bnoordhuis

    Update AUTHORS

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