mirror of
				https://github.com/lunarmodules/luasocket.git
				synced 2025-10-31 02:15:38 +01:00 
			
		
		
		
	fix(http): Correct receiveheaders() handling of folded values (#420)
This commit is contained in:
		| @@ -62,7 +62,7 @@ local function receiveheaders(sock, headers) | |||||||
|         -- unfold any folded values |         -- unfold any folded values | ||||||
|         while string.find(line, "^%s") do |         while string.find(line, "^%s") do | ||||||
|             value = value .. line |             value = value .. line | ||||||
|             line = sock:receive() |             line, err = sock:receive() | ||||||
|             if err then return nil, err end |             if err then return nil, err end | ||||||
|         end |         end | ||||||
|         -- save pair in table |         -- save pair in table | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user