Commits on Mar 19, 2013
  1. Fix #59. If the user specifies the content length, do not add an extr…

    …a Content-Length header.
    committed Mar 19, 2013
Commits on Mar 15, 2013
  1. Tag v0.4.1

    committed Mar 15, 2013
  2. Merge pull request #58 from chrisavl/master

    Strip strings before converting to integers
    committed Mar 15, 2013
  3. @chrisavl

    Dont strip strings in macros

    chrisavl committed Mar 15, 2013
  4. @chrisavl
Commits on Jan 18, 2013
Commits on Jan 11, 2013
  1. Merge pull request #53 from anha0825/safe_callback

    Catch errors from handle_event/3 callback when about to send response.
    committed Jan 11, 2013
Commits on Jan 10, 2013
  1. @anha0825

    New line in error message.

    anha0825 committed Jan 10, 2013
  2. @anha0825
  3. @anha0825
Commits on Nov 28, 2012
  1. Merge pull request #49 from anha0825/spec_fix

    Move the state definition of the elli handler cordinator.
    committed Nov 28, 2012
  2. @anha0825

    Move the state definition of the elli handler cordinator.

    elli.hrl needs to be included by modules that modifies the req record.
    anha0825 committed Nov 28, 2012
Commits on Nov 27, 2012
  1. Merge pull request #47 from anha0825/spec_fix

    Fixed type spec errors from dialyzer.
    committed Nov 27, 2012
Commits on Nov 26, 2012
  1. @anha0825
  2. Tag v0.4

    committed Nov 26, 2012
  3. Whitespace cleanup.

    committed Nov 26, 2012
  4. Merge pull request #38 from zambal/send_file_with_ranges

    Added single byte-range support for elli_hhtp:send_file
    committed Nov 26, 2012
Commits on Nov 15, 2012
  1. Make sure send_file/6 closes the file in all cases.

    Vincent Siliakus committed Nov 15, 2012
  2. Another round of refactoring send_file related code.

    - Replaced FileOpts in send_file/6 with Range, because the size option in FileOpts was actually redundant since the removal of prepare_send_file.
    - Made send_file more robust against errors.
    - Cleaned up some type specs.
    - Removed size related test and example code in elli_example_callback and elli_test.
    Vincent Siliakus committed Nov 15, 2012
Commits on Nov 13, 2012
  1. merge candidate 2012/11/13

    Vincent Siliakus committed Nov 13, 2012
Commits on Nov 12, 2012
  1. Fixed intermittently failing testcase by explicitly receiving the exp…

    …ected size. Probably a timing issue was causing gen_tcp:recv(Socket, 0) to return with a different buffer than expected in the eyes of the testcase.
    committed Nov 12, 2012
  2. In case of a too big request body, send 413 Request Entity Too Large.…

    … Elli will first receive and discard the client body before sending the response. If the request size is more than twice max_body_size, the connection is closed without receiving anything to avoid clients hogging bandwidth. Fixes #42.
    committed Nov 12, 2012
Commits on Nov 9, 2012
  1. Refactored send_file for better readability and maintainability.

    Biggest change is moving all range and size parsing outside send_file into a new function prepare_send_file/5.
    This translates in a new send_file/5 whose signature and semantics are comparable to Elli's send_response.
    Vincent Siliakus committed Nov 9, 2012
Commits on Nov 8, 2012
  1. Changed the datatype of byte_range from {Offset, Length} to {FirstByt…

    …e, LastByte}.
    
    This makes working with ranges more consistent, since HTTP ranges also use the FirstByte, LastByte format.
    A side effect of this change is that ranges of length 0 are never possible anymore (but a size of 0 is still possible and results in a no-op)
    Vincent Siliakus committed Nov 8, 2012
  2. removed some tabs again

    Vincent Siliakus committed Nov 8, 2012
  3. added some extra send_file examples.

    Vincent Siliakus committed Nov 8, 2012
  4. removed some tabs again

    Vincent Siliakus committed Nov 8, 2012
  5. Added size as an argument of (now) send_file/4. Removes corner cases …

    …and gives possibility to send a sub part without setting a range.
    Vincent Siliakus committed Nov 8, 2012
  6. added global option to binary:split call in elli_http:parse_range/3 i…

    …n order to catch invalid ranges
    Vincent Siliakus committed Nov 8, 2012
  7. fixed bug where an invalid negative start-byte-pos would be erroneous…

    …ly seen as a suffix length.
    Vincent Siliakus committed Nov 8, 2012
  8. added missing empty options list in execute_callback

    Vincent Siliakus committed Nov 8, 2012