From 41ed417517e62f51b0d89946cb7a3642871bccc0 Mon Sep 17 00:00:00 2001 From: zedshaw Date: Tue, 4 Apr 2006 16:55:56 +0000 Subject: Reverted a new feature from Ragel which broke the parser on certain multi-part mime uploads. git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@146 19e92222-5c0b-0410-8929-a290d50e31e9 --- ext/http11/http11.c | 2 +- ext/http11/http11_parser.rl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'ext') diff --git a/ext/http11/http11.c b/ext/http11/http11.c index 55ecc0f..9e2cc6f 100644 --- a/ext/http11/http11.c +++ b/ext/http11/http11.c @@ -520,7 +520,7 @@ void Init_http11() DEF_GLOBAL(server_protocol, "SERVER_PROTOCOL"); DEF_GLOBAL(server_protocol_value, "HTTP/1.1"); DEF_GLOBAL(http_host, "HTTP_HOST"); - DEF_GLOBAL(mongrel_version, "Mongrel 0.3.12.1"); + DEF_GLOBAL(mongrel_version, "Mongrel 0.3.12.2"); DEF_GLOBAL(server_software, "SERVER_SOFTWARE"); DEF_GLOBAL(port_80, "80"); diff --git a/ext/http11/http11_parser.rl b/ext/http11/http11_parser.rl index af3a444..6a256a6 100644 --- a/ext/http11/http11_parser.rl +++ b/ext/http11/http11_parser.rl @@ -99,7 +99,7 @@ field_value = any* >start_value %write_value; - message_header = field_name ":" field_value :> CRLF; + message_header = field_name ":" field_value $0 CRLF >1; Request = Request_Line (message_header)* ( CRLF @done); -- cgit v1.2.3-24-ge0c7