Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

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

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

    authored
  2. Merge pull request #58 from chrisavl/master

    authored
    Strip strings before converting to integers
  3. Christian Lundgren

    Dont strip strings in macros

    chrisavl authored
  4. Christian Lundgren
Commits on Jan 18, 2013
Commits on Jan 11, 2013
  1. Merge pull request #53 from anha0825/safe_callback

    authored
    Catch errors from handle_event/3 callback when about to send response.
Commits on Jan 10, 2013
  1. Andreas Hasselberg

    New line in error message.

    anha0825 authored
  2. Andreas Hasselberg
  3. Andreas Hasselberg
Commits on Nov 28, 2012
  1. Merge pull request #49 from anha0825/spec_fix

    authored
    Move the state definition of the elli handler cordinator.
  2. Andreas Hasselberg

    Move the state definition of the elli handler cordinator.

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

    authored
    Fixed type spec errors from dialyzer.
Commits on Nov 26, 2012
  1. Andreas Hasselberg
  2. Tag v0.4

    authored
  3. Whitespace cleanup.

    authored
  4. Merge pull request #38 from zambal/send_file_with_ranges

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

    Vincent Siliakus authored
  2. Another round of refactoring send_file related code.

    Vincent Siliakus authored
    - 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.
Commits on Nov 13, 2012
  1. merge candidate 2012/11/13

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

    authored
    …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.
  2. In case of a too big request body, send 413 Request Entity Too Large.…

    authored
    … 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.
Commits on Nov 9, 2012
  1. Refactored send_file for better readability and maintainability.

    Vincent Siliakus authored
    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.
Commits on Nov 8, 2012
  1. Changed the datatype of byte_range from {Offset, Length} to {FirstByt…

    Vincent Siliakus authored
    …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)
  2. removed some tabs again

    Vincent Siliakus authored
  3. added some extra send_file examples.

    Vincent Siliakus authored
  4. removed some tabs again

    Vincent Siliakus authored
  5. Added size as an argument of (now) send_file/4. Removes corner cases …

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

    Vincent Siliakus authored
    …n order to catch invalid ranges
  7. fixed bug where an invalid negative start-byte-pos would be erroneous…

    Vincent Siliakus authored
    …ly seen as a suffix length.
  8. added missing empty options list in execute_callback

    Vincent Siliakus authored
Something went wrong with that request. Please try again.