Changeset b82c61f42705019a80ef6cc50e587771f3ab1aae
- Timestamp:
- 09/19/09 00:27:44
(4 years ago)
- Author:
- Theo Schlossnagle <jesus@omniti.com>
- git-committer:
- Theo Schlossnagle <jesus@omniti.com> 1253320064 +0000
- git-parent:
[72e62f78f28e05bb81e934d01101f777d85e2cd2]
- git-author:
- Theo Schlossnagle <jesus@omniti.com> 1253320064 +0000
- Message:
connection:close could dump headers and bail, we'll notice that later and be fine with it. refs #181
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r72e62f7 |
rb82c61f |
|
| 53 | 53 | while true do |
|---|
| 54 | 54 | local str = self.e:read("\n") |
|---|
| 55 | | if str == nil then error("premature end of headers") end |
|---|
| 56 | | if str == "\r\n" or str == "\n" then break end |
|---|
| | 55 | if str == nil or str == "\r\n" or str == "\n" then break end |
|---|
| 57 | 56 | str = string.gsub(str, '%s+$', '') |
|---|
| 58 | 57 | local hdr, val = string.match(str, "^([-_%a%d]+):%s+(.+)$") |
|---|