lib/imw/schemes/http.rb in imw-0.2.14 vs lib/imw/schemes/http.rb in imw-0.2.15
- old
+ new
@@ -76,10 +76,10 @@
# @yield [RestClient::Response] the response from the server
# @return [RestClient::Response] the response from the server
# @raise [RestClient::NotModified, RestClient::Unauthorized, RestClient::ResourceNotFound, RestClient::RequestFailed] error from RestClient on non-2xx response codes
def post payload, headers={}, &block
make_restclient_request do
- RestClient.post(uri.to_s, payload, &block)
+ RestClient.post(uri.to_s, payload, headers, &block)
end
end
# Send a PUT request to this resource's URI with data
# +payload+.