Diff

net/http/parser.lua @ 5303:19a4a3462574

Merge 0.9->trunk
author Waqas Hussain <waqas20@gmail.com>
date Tue, 22 Jan 2013 08:30:38 +0500
parent 5291:01f7522049fb
child 5322:8d525f58f916
line wrap: on
line diff
--- a/net/http/parser.lua	Sat Dec 29 19:13:42 2012 +0100
+++ b/net/http/parser.lua	Tue Jan 22 08:30:38 2013 +0500
@@ -77,6 +77,7 @@
 							end
 						end
 					end
+					if not first_line then error = true; return error_cb("invalid-status-line"); end
 					len = tonumber(headers["content-length"]); -- TODO check for invalid len
 					if client then
 						-- FIXME handle '100 Continue' response (by skipping it)