Permalink
Browse files

Merge pull request #70 from Kami/allow_dot_in_header_names

Modify http client so it supports dot (".") in the header name.
  • Loading branch information...
2 parents 590591e + 43e571f commit cf9faec6ccb1f67d0d56fe72b5918f3f50586aa7 @postwait postwait committed May 9, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/modules-lua/noit/HttpClient.lua
@@ -94,7 +94,7 @@ function HttpClient:get_headers()
local str = self.e:read("\n")
if str == nil or str == "\r\n" or str == "\n" then break end
str = string.gsub(str, '%s+$', '')
- local hdr, val = string.match(str, "^([-_%a%d]+):%s*(.*)$")
+ local hdr, val = string.match(str, "^([%.-_%a%d]+):%s*(.*)$")
if hdr == nil then
if lasthdr == nil then error ("malformed header line") end
hdr = lasthdr

0 comments on commit cf9faec

Please sign in to comment.