Changeset cf9faec6ccb1f67d0d56fe72b5918f3f50586aa7

Show
Ignore:
Timestamp:
05/09/12 14:32:06 (2 years ago)
Author:
Theo Schlossnagle <jesus@lethargy.org>
git-committer:
Theo Schlossnagle <jesus@lethargy.org> 1336573926 -0700
git-parent:

[590591efa1e493ec5b78a3f51acd3fa4e6cdc01c], [43e571f2a2159ab92290337cbce8aa3ca9d5ddfb]

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

Merge pull request #70 from Kami/allow_dot_in_header_names

Modify http client so it supports dot (".") in the header name.

Files:

Legend:

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

    r0d57cf3 r43e571f  
    9595        if str == nil or str == "\r\n" or str == "\n" then break end 
    9696        str = string.gsub(str, '%s+$', '') 
    97         local hdr, val = string.match(str, "^([-_%a%d]+):%s*(.*)$") 
     97        local hdr, val = string.match(str, "^([%.-_%a%d]+):%s*(.*)$") 
    9898        if hdr == nil then 
    9999            if lasthdr == nil then error ("malformed header line") end