Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Commits on Jan 7, 2012
  1. @raggi

    Merge pull request #296 from jm3/patch-2

    raggi authored
    ...except after c.
Commits on Dec 29, 2011
  1. @jm3

    ...except after c.

    jm3 authored
Commits on Dec 27, 2011
  1. @raggi

    Add support for HTTP_X_FORWARDED_SCHEME. From pull request 292, reimp…

    raggi authored
    …lemented due to lack of tests. Closes #292.
Commits on Dec 17, 2011
  1. @raggi
Commits on Oct 1, 2011
  1. @rkh

    also trust localhost

    rkh authored
  2. @martoche @rkh

    moved the trusted_proxy regex into a separate method to allow overrid…

    martoche authored rkh committed
    …ing, added ipv6 loopback and private address ranges to the default regex
    Signed-off-by: Konstantin Haase <>
  3. @martoche @rkh

    support for trusted proxies and IPv6 for Request#ip

    martoche authored rkh committed
    Signed-off-by: Konstantin Haase <>
Commits on Sep 16, 2011
  1. @raggi

    Merge pull request #231 from lawrencepit/cookies

    raggi authored
    Request should return cookies, also when initially not set.
Commits on Sep 13, 2011
  1. @yb66
Commits on Sep 7, 2011
  1. @lawrencepit
  2. @raggi

    Merge pull request #224 from kou/parse-accept-encoding-loosely

    raggi authored
    parse Accept-Encoding header loosely.
Commits on Sep 1, 2011
  1. @rkh

    make tests pass on 1.8 again

    rkh authored
Commits on Aug 23, 2011
  1. @rkh
  2. @rkh

    refactor Request#cookies, fixes #225

    rkh authored
Commits on Aug 21, 2011
  1. @kou

    parse Accept-Encoding header loosely.

    kou authored
    After this commit, Rack::Request#accept_encoding doesn't
    raise an exception for invalid Accept-Encoding value.
    If Rack::Request#accept_encoding may raise an exception,
    Rack::Middleware::Deflater may also raise an exception.
    Because Rack::Middleware::Deflater dosn't rescue an
    exception from Rack::Request#accept_encoding.
    On the exception case, it seems that either returning "400
    Bad Request" or just ignoring invalid value is better
    behavior. This patch uses the latter solution.
Commits on May 3, 2011
  1. @skade @raggi

    Keep #params from merging POST into GET

    skade authored raggi committed
    Signed-off-by: raggi <>
  2. @raggi
  3. @raggi
Commits on Mar 18, 2011
  1. @rkh

    add Rack::Request#patch?

    rkh authored
Commits on Jan 23, 2011
  1. @jonleighton @josh

    If there is an X-Forwarded-Host header, we should take the absence of…

    jonleighton authored josh committed
    … a port segment to imply 'standard port', not 'use the SERVER_PORT'
Commits on Jan 13, 2011
  1. @tenderlove @josh

    fixing unused variable warnings in 1.9.3

    tenderlove authored josh committed
Commits on Jan 4, 2011
  1. @josh

    Extract Request#base_url

    josh authored
Commits on Dec 9, 2010
  1. @richmeyers @josh

    Treat an empty content type as nil content type (issue #40)

    richmeyers authored josh committed
  2. @stephencelis @josh

    Rack::Request support for HTTP_X_FORWARDED_{PORT,SSL}

    stephencelis authored josh committed
Commits on Nov 2, 2010
  1. @martoche @josh

    HTTP_X_FORWARDED_PROTO can be a list of chained values, eg 'https, ht…

    martoche authored josh committed
    …tp, http'
Commits on Oct 26, 2010
  1. @josh
Commits on Oct 10, 2010
  1. @josevalim @raggi

    ssl? should also return true if rack.url_scheme is https.

    josevalim authored raggi committed
    Signed-off-by: raggi <>
Commits on Oct 3, 2010
  1. @raggi

    186 bro :'(

    raggi authored
  2. @spastorino @raggi

    PERF: change inject({}) to Hash + map

    spastorino authored raggi committed
    Signed-off-by: raggi <>
  3. @josevalim @raggi

    Improves performance by lazy loading the session.

    josevalim authored raggi committed
    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 <>
  4. @ghazel @raggi

    do not default referer to '/'

    ghazel authored raggi committed
    Signed-off-by: raggi <>
Commits on Jun 30, 2010
  1. @brasten @manveru

    Modified Rack::Request#port to respect HTTP_X_FORWARDED_HOST port inf…

    brasten authored manveru committed
    …ormation if available
Commits on Jun 11, 2010
  1. @manveru
Commits on Jun 9, 2010
  1. @manveru
Commits on Jun 8, 2010
  1. @manveru
Something went wrong with that request. Please try again.