lib/racked/server.rb in racked-1.0.2 vs lib/racked/server.rb in racked-1.0.3
- old
+ new
@@ -43,12 +43,14 @@
headers['Accept'] = format
request = Net::HTTP::Delete.new(request_uri(uri), headers)
http_response = make_request request, uri
end
- def put(url_string, fields_hash)
+ def put(url_string, fields_hash, format)
uri = full_uri(url_string)
- request = Net::HTTP::Put.new(request_uri(uri), prepared_headers)
+ headers = prepared_headers
+ headers['Accept'] = format
+ request = Net::HTTP::Put.new(request_uri(uri), headers)
request.set_form_data(fields_hash)
http_response = make_request request, uri
end
def post(url_string, fields_hash, format)
\ No newline at end of file