Changeset b37e686ef7be37741bc080197b6b119abc4eae31

Show
Ignore:
Timestamp:
04/21/10 17:48:53 (4 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1271872133 +0000
git-parent:

[9bdec91148b07bbc700fee57405676759c52fe29]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1271872133 +0000
Message:

an empty string isn't false in lua, refs #270

Files:

Legend:

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

    r289d8e6 rb37e686  
    199199    end 
    200200    hdr = hdr .. ', nc=' .. nc 
    201 noit.log("error", "Authorization: Digest " .. hdr .. "\n") 
    202201    return hdr 
    203202end 
     
    408407            elseif schema == 'http' then  
    409408                use_ssl = false 
    410                 port = port or 80 
     409                if port == "" then port = 80 end 
    411410            elseif schema == 'https' then 
    412411                use_ssl = true 
    413                 port = port or 443 
     412                if port == "" then port = 443 end 
    414413            end 
    415414            if host ~= nil then