Permalink
Commits on Oct 28, 2010
Commits on Oct 26, 2010
Commits on Oct 10, 2010
  1. ssl? should also return true if rack.url_scheme is https.

    Signed-off-by: raggi <jftucker@gmail.com>
    josevalim committed with raggi Oct 8, 2010
  2. showexceptions: gracefully handle empty backtraces

    Some HTTP servers (e.g. Unicorn and Rainbows!) raise certain
    exceptions without a backtrace[1], so avoid triggering our own
    NoMethodError exception because of this.
    
    [1] - http://git.bogomips.org/cgit/unicorn.git/commit/?id=e4256da292f9626d7dfca60e08f65651a0a9139a
    
    Conflicts:
    
    	test/spec_showexceptions.rb
    
    Signed-off-by: raggi <jftucker@gmail.com>
    raggi committed Oct 10, 2010
Commits on Oct 5, 2010
  1. release semantics of Rack::Chunked and Rack::ContentLength from handl…

    …ers. this should not be forced on users.
    raggi committed Oct 4, 2010
Commits on Oct 4, 2010
  1. minor style changes for merge

    raggi committed Oct 4, 2010
  2. Byte-range support for File class.

    Allows Rack to support byte-range requests (via
    the HTTP 1.1 "Range:" header) for static files,
    even when sendfile is not being used.
    
    Conforms to RFC 2616 sec. 14.35 _except_ that
    multiple byte-ranges are not supported yet.
    (They're parsed correctly, but the response body
    would need to be a MIME multipart.)
    
    Tested in Ruby 1.8.7 on Mac OS X 10.6.4.
    
    Signed-off-by: raggi <jftucker@gmail.com>
    snej committed with raggi Oct 4, 2010
Commits on Oct 3, 2010
  1. Move sid initialization to another method so it can be overwritten by…

    … other frameworks.
    
    Signed-off-by: raggi <jftucker@gmail.com>
    josevalim committed with raggi Oct 3, 2010
  2. 186 bro :'(

    raggi committed Oct 3, 2010
  3. Merge branch 'perfix' of http://github.com/thedarkone/rack into theda…

    …rkone-perfix
    
    * 'perfix' of http://github.com/thedarkone/rack:
      No need to delete a key that doesn't exist.
      Avoiding invoking #delete unless unnecessary.
      Fix the phantom header key bug.
      Revert "Don't set header to nil on HeaderHash#include?"
    raggi committed Oct 3, 2010
  4. PERF: change inject({}) to Hash + map

    Signed-off-by: raggi <jftucker@gmail.com>
    spastorino committed with raggi Oct 3, 2010
  5. PERF: just using a map here is fine

    Signed-off-by: raggi <jftucker@gmail.com>
    spastorino committed with raggi Oct 3, 2010
  6. PERF: change inject({}) to Hash + map

    Signed-off-by: raggi <jftucker@gmail.com>
    spastorino committed with raggi Oct 3, 2010
  7. Etag middleware should not return a digest if body is empty and shoul…

    …d also allow a default cache directive when no caching is done.
    josevalim committed with raggi Sep 22, 2010
  8. Fix Memcached tests.

    Signed-off-by: raggi <jftucker@gmail.com>
    josevalim committed with raggi Oct 3, 2010
  9. Improve performance of cookie store by unpacking the data just once.

    Signed-off-by: raggi <jftucker@gmail.com>
    josevalim committed with raggi Sep 28, 2010
  10. Improves performance by lazy loading the session.

    The session has two flags, one for reading and another for writing. If the session is just read, we get it from the store but do not send a cookie a back to the client unless it was written.
    
    This commit also adds Rack::Request#ssl? for convenience.
    
    Signed-off-by: raggi <jftucker@gmail.com>
    josevalim committed with raggi Sep 19, 2010
  11. do not default referer to '/'

    Signed-off-by: raggi <jftucker@gmail.com>
    ghazel committed with raggi Sep 17, 2010
  12. modified rack::static comment to reflect new routes

    Signed-off-by: raggi <jftucker@gmail.com>
    amerine committed with raggi Sep 11, 2010
  13. Added the ability to pass a hash of route to file mappings to Rack::S…

    …tatic
    
    Signed-off-by: raggi <jftucker@gmail.com>
    amerine committed with raggi Sep 11, 2010
Commits on Sep 24, 2010
Commits on Sep 22, 2010
  1. Revert "Don't set header to nil on HeaderHash#include?"

    The change is a bit messy.
    
    This reverts commit f6f3c60.
    thedarkone committed Sep 22, 2010
  2. Fix comment in Sendfile

    manveru committed Sep 22, 2010
Commits on Sep 20, 2010
  1. Need to properly escape UTF-8 strings in 1.9.2

    Rack was generating warnings in 1.9.2:
    ...rack/utils.rb:16: warning: regexp match /.../n against to UTF-8 string
    
    Modified the regex in utils to support UTF-8. Did not add tests since
    the multibyte escape tests cover this case when in 1.9.2.
    
    Verified tests pass in: 1.8.6-p399, 1.8.7-p302, ree-1.8.7-2010.02,
    1.9.2-p0
    Durran Jordan and Paul Elliott committed with manveru Sep 20, 2010