Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
Make multipart boundary header detection more flexible
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Clark committed Jan 22, 2014
1 parent 19a30ed commit 00efc72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fakes3/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def do_PUT(request,response)

def do_POST(request,response)
# check that we've received file data
unless request.content_type =~ /^multipart\/form-data; boundary=(.+)/
unless request.content_type =~ /^multipart\/form-data; ?boundary=(.+)/
raise WEBrick::HTTPStatus::BadRequest
end
s_req = normalize_request(request)
Expand Down

0 comments on commit 00efc72

Please sign in to comment.