Commits on Oct 27, 2011
  1. @vinoski

    fix zd864: long HTTP header lines not handled properly

    Due to Erlang bug OTP-9389, the handling of HTTP request header lines
    that exceed the size of the gen_tcp receive buffer is broken when
    using {packet,http} and {packet,httph} modes.
    
    Modify mochiweb to work around this bug by using {packet,line} mode
    instead to collect request header lines and then using
    erlang:decode_packet to parse them. Using {packet,line} allows us to
    avoid reading past the headers into the request body (if present),
    since doing that would require us to carry the body data from the
    header handling functions over into the body handling functions, which
    could be a pretty intrusive and complicated change.
    
    Also add regression unit tests that verify that long HTTP request
    lines and long HTTP header lines are handled correctly.
    vinoski committed Oct 27, 2011
Commits on Oct 26, 2011
  1. @vinoski

    add .gitignore

    vinoski committed Oct 26, 2011
Commits on Jul 26, 2010
  1. replace tabs with spaces bz://124

    Bryan Fink committed Jul 26, 2010
Commits on Jun 17, 2010
  1. @argv0
  2. @argv0

    inc app version

    argv0 committed Jun 17, 2010
  3. @argv0
Commits on Jun 15, 2010
  1. @argv0
Commits on Jun 14, 2010
  1. @argv0

    move stuff to include

    --HG--
    rename : src/internal.hrl => include/internal.hrl
    argv0 committed Jun 14, 2010
  2. @argv0

    merge files from mochiweb-tip

    argv0 committed Jun 14, 2010
Commits on May 13, 2010
  1. @jonmeredith

    Added explicit timeout handling to gen_tcp:recv calls mochiweb_http.

    Firefox was getting intermittent 400 errors after a period of inactivity
    on persistent connections.  If the connection timed out just before
    the request arrived a 400 was being sent by handle_invalid_request
    and interpreted as the response by firefox.
    Now it just closes the connection if no request is pending.
    jonmeredith committed May 13, 2010
Commits on Apr 8, 2010
  1. copy riak/apps/mochiweb to external mochiweb repo

    Bryan Fink committed Apr 8, 2010
Commits on Dec 23, 2009
  1. @dizzyd

    Fixing typo in updated Makefile

    dizzyd committed Dec 22, 2009
  2. @dizzyd

    Rebar-ized

    --HG--
    rename : src/mochiweb.app => ebin/mochiweb.app
    dizzyd committed Dec 22, 2009
Commits on Nov 15, 2009
  1. http://code.google.com/p/mochiweb/issues/detail?id=46

    --HG--
    extra : convert_revision : svn%3A583d1f64-3c3e-0410-8459-0f15fcd77d59/trunk%40113
    bob.ippolito committed Nov 15, 2009
  2. http://code.google.com/p/mochiweb/issues/detail?id=47

    --HG--
    extra : convert_revision : svn%3A583d1f64-3c3e-0410-8459-0f15fcd77d59/trunk%40112
    bob.ippolito committed Nov 15, 2009
Commits on Nov 5, 2009
  1. patch from Kostis Sagonas, obtained by using tidier, a tool that tidi…

    …es Erlang code
    
    --HG--
    extra : convert_revision : svn%3A583d1f64-3c3e-0410-8459-0f15fcd77d59/trunk%40111
    bob.ippolito committed Nov 5, 2009
Commits on Sep 28, 2009
  1. change default backlog to 128

    --HG--
    extra : convert_revision : svn%3A583d1f64-3c3e-0410-8459-0f15fcd77d59/trunk%40110
    bob.ippolito committed Sep 28, 2009
  2. finally fixing http://code.google.com/p/mochiweb/issues/detail?id=22

    --HG--
    extra : convert_revision : svn%3A583d1f64-3c3e-0410-8459-0f15fcd77d59/trunk%40109
    bob.ippolito committed Sep 28, 2009
  3. apply utf16-surrogate-pair.diff from http://code.google.com/p/mochiwe…

    …b/issues/detail?id=35
    
    --HG--
    extra : convert_revision : svn%3A583d1f64-3c3e-0410-8459-0f15fcd77d59/trunk%40108
    bob.ippolito committed Sep 28, 2009
  4. add a stub examples folder

    --HG--
    extra : convert_revision : svn%3A583d1f64-3c3e-0410-8459-0f15fcd77d59/trunk%40107
    bob.ippolito committed Sep 28, 2009
  5. http://code.google.com/p/mochiweb/issues/detail?id=44

    --HG--
    extra : convert_revision : svn%3A583d1f64-3c3e-0410-8459-0f15fcd77d59/trunk%40106
    bob.ippolito committed Sep 28, 2009
  6. 301.patch from Ben Hood on Jul 16th to add slashes for directories

    --HG--
    extra : convert_revision : svn%3A583d1f64-3c3e-0410-8459-0f15fcd77d59/trunk%40105
    bob.ippolito committed Sep 28, 2009
Commits on Aug 15, 2009
  1. #10022

    --HG--
    extra : convert_revision : svn%3A583d1f64-3c3e-0410-8459-0f15fcd77d59/trunk%40104
    bob.ippolito committed Aug 15, 2009
Commits on Aug 13, 2009
  1. fixed http://code.google.com/p/mochiweb/issues/detail?id=42

    --HG--
    extra : convert_revision : svn%3A583d1f64-3c3e-0410-8459-0f15fcd77d59/trunk%40103
    bob.ippolito committed Aug 13, 2009
Commits on Jun 25, 2009
  1. http://code.google.com/p/mochiweb/issues/detail?id=36 Compiler warnin…

    …gs in mochiweb_skel about deprecation of the regexp module in Erlang R15
    
    This was a patch we got for webmachine's project generator, which is basically a copy of mochiweb's.   Just spreading the love downstream.
    
    --HG--
    extra : convert_revision : svn%3A583d1f64-3c3e-0410-8459-0f15fcd77d59/trunk%40102
    andrew.r.gross committed Jun 25, 2009
Commits on May 17, 2009
  1. fix issue with whitespace after = in attribute parser http://groups.g…

    …oogle.com/group/mochiweb/browse_thread/thread/a4e01aba5fb7bb66?hl=en
    
    --HG--
    extra : convert_revision : svn%3A583d1f64-3c3e-0410-8459-0f15fcd77d59/trunk%40101
    bob.ippolito committed May 17, 2009
Commits on Apr 14, 2009
  1. http://code.google.com/p/mochiweb/issues/detail?id=29 HttpOnly suppor…

    …t for cookies
    
    --HG--
    extra : convert_revision : svn%3A583d1f64-3c3e-0410-8459-0f15fcd77d59/trunk%40100
    bob.ippolito committed Apr 14, 2009
Commits on Apr 4, 2009
  1. http://code.google.com/p/mochiweb/issues/detail?id=32 utf-8 output op…

    …tion for mochijson2:encoder
    
    --HG--
    extra : convert_revision : svn%3A583d1f64-3c3e-0410-8459-0f15fcd77d59/trunk%4099
    bob.ippolito committed Apr 4, 2009
  2. http://code.google.com/p/mochiweb/issues/detail?id=33 fix mochijson:e…

    …ncoder([{input_encoding, utf8}])
    
    --HG--
    extra : convert_revision : svn%3A583d1f64-3c3e-0410-8459-0f15fcd77d59/trunk%4098
    bob.ippolito committed Apr 4, 2009
Commits on Feb 24, 2009
  1. svn merge -r94:93 . || revert http://code.google.com/p/mochiweb/issue…

    …s/detail?id=27
    
    --HG--
    extra : convert_revision : svn%3A583d1f64-3c3e-0410-8459-0f15fcd77d59/trunk%4097
    bob.ippolito committed Feb 24, 2009
  2. http://code.google.com/p/mochiweb/issues/detail?id=30

    --HG--
    extra : convert_revision : svn%3A583d1f64-3c3e-0410-8459-0f15fcd77d59/trunk%4096
    bob.ippolito committed Feb 24, 2009
Commits on Feb 16, 2009
  1. http://code.google.com/p/mochiweb/issues/detail?id=28 mochiweb_header…

    …s:delete_any/2
    
    --HG--
    extra : convert_revision : svn%3A583d1f64-3c3e-0410-8459-0f15fcd77d59/trunk%4095
    bob.ippolito committed Feb 16, 2009
  2. http://code.google.com/p/mochiweb/issues/detail?id=27 conditionally d…

    …efault content-length to 0 iff 2xx
    
    --HG--
    extra : convert_revision : svn%3A583d1f64-3c3e-0410-8459-0f15fcd77d59/trunk%4094
    bob.ippolito committed Feb 16, 2009
  3. remove dead code in json test http://code.google.com/p/mochiweb/issue…

    …s/detail?id=24
    
    --HG--
    extra : convert_revision : svn%3A583d1f64-3c3e-0410-8459-0f15fcd77d59/trunk%4093
    bob.ippolito committed Feb 16, 2009
  4. http://code.google.com/p/mochiweb/issues/detail?id=23 use edoc:applic…

    …ation, switch to an explicit make doc phase
    
    --HG--
    extra : convert_revision : svn%3A583d1f64-3c3e-0410-8459-0f15fcd77d59/trunk%4092
    bob.ippolito committed Feb 16, 2009