lib/em-http-server/server.rb in em-http-server-0.1.2 vs lib/em-http-server/server.rb in em-http-server-0.1.3
- old
+ new
@@ -47,12 +47,9 @@
# a correct request has three parts
send_error(400, "Bad request") unless parsed.size == 3
@http_request_method, uri, @http_protocol = parsed
- # uri must begin with a /
- send_error(400, "Bad request") unless uri.start_with?('/')
-
# optional query string
@http_request_uri, @http_query_string = uri.split('?')
end
# send back to the client an HTTP error
\ No newline at end of file