lib/ftw/webserver.rb in ftw-0.0.47 vs lib/ftw/webserver.rb in ftw-0.0.48

- old
+ new

@@ -47,9 +47,11 @@ request = read_http_message(connection) rescue EOFError, Errno::EPIPE, Errno::ECONNRESET, HTTP::Parser::Error, IOError # Connection EOF'd or errored before we finished reading a full HTTP # message, shut it down. break + rescue FTW::HTTP::Message::UnsupportedHTTPVersion + break end if request["Content-Length"] || request["Transfer-Encoding"] request.body = connection end