Skip to content

Commit

Permalink
Do not quote the boundary in the Content-Type header.
Browse files Browse the repository at this point in the history
  • Loading branch information
loe committed Apr 22, 2010
1 parent 49420a0 commit de0bd10
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/restclient/payload.rb
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def boundary
end

def headers
super.merge({'Content-Type' => %Q{multipart/form-data; boundary="#{boundary}"}})
super.merge({'Content-Type' => %Q{multipart/form-data; boundary=#{boundary}}})
end

def close
Expand Down
2 changes: 1 addition & 1 deletion spec/payload_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
it "should use standard enctype as default content-type" do
m = RestClient::Payload::Multipart.new({})
m.stub!(:boundary).and_return(123)
m.headers['Content-Type'].should == 'multipart/form-data; boundary="123"'
m.headers['Content-Type'].should == 'multipart/form-data; boundary=123'
end

it "should form properly separated multipart data" do
Expand Down

0 comments on commit de0bd10

Please sign in to comment.