lib/racked/server.rb in racked-0.9.0 vs lib/racked/server.rb in racked-1.0.0

- old
+ new

@@ -48,12 +48,14 @@ request = Net::HTTP::Put.new(request_uri(uri), prepared_headers) request.set_form_data(fields_hash) http_response = make_request request, uri end - def post(url_string, fields_hash) + def post(url_string, fields_hash, format) uri = full_uri(url_string) - request = Net::HTTP::Post.new(request_uri(uri), prepared_headers) + headers = prepared_headers + headers['Accept'] = format + request = Net::HTTP::Post.new(request_uri(uri), headers) request.set_form_data(fields_hash) http_response = make_request request, uri end # \ No newline at end of file