lib/imw/schemes/http.rb in imw-0.2.7 vs lib/imw/schemes/http.rb in imw-0.2.8

- old
+ new

@@ -26,11 +26,10 @@ # @return [IMW::Resource] the new resource def cp new_uri IMW::Tools::Transferer.new(:cp, self, new_uri).transfer! end - # Return the basename of the URI or <tt>_index</tt> if it's # blank, as in the case of <tt>http://www.google.com</tt>. # # @return [String] def effective_basename @@ -77,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, headers, &block) + RestClient.post(uri.to_s, payload, &block) end end # Send a PUT request to this resource's URI with data # +payload+.