Changeset a36e20f834b280d8a64b7271e670e7ccf3b39e90

Show
Ignore:
Timestamp:
07/26/12 22:59:10 (2 years ago)
Author:
Theo Schlossnagle <jesus@lethargy.org>
git-committer:
Theo Schlossnagle <jesus@lethargy.org> 1343343550 -0700
git-parent:

[7636a18e0688e13d2ee24022bd5e438ea1b54c04], [89346fab1cad7327b4809f45766947091c091338]

git-author:
Theo Schlossnagle <jesus@lethargy.org> 1343343550 -0700
Message:

Merge pull request #97 from pquerna/fix_missing_uri_on_redirect

Fix an empty string URI when we get a Location header like "http://examp...

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/modules-lua/noit/module/http.lua

    r0184fd8 r89346fa  
    278278 
    279279function get_absolute_path(uri) 
    280     if uri == nil then return "/" end 
     280    if uri == nil or #uri == 0 then return "/" end 
    281281    local toReturn = uri 
    282282    local go_back = string.find(toReturn, "%.%./")