Permalink
Browse files

HTTP requests should default to POST method

  • Loading branch information...
1 parent ab3b236 commit 41c52569c5fe239a6bc5caccdc71522ec95401e7 @troelskn committed Aug 13, 2009
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/handsoap/http.rb
  2. +1 −1 lib/handsoap/service.rb
@@ -7,7 +7,7 @@ module Http
# Represents a HTTP Request.
class Request
attr_reader :url, :http_method, :headers, :body
- attr_writer :body
+ attr_writer :body, :http_method
def initialize(url, http_method = :get)
@url = url
@http_method = http_method
@@ -199,7 +199,7 @@ def debug(message = nil) #:nodoc:
end
# Does the actual HTTP level interaction.
def send_http_request(uri, post_body, headers)
- request = Handsoap::Http::Request.new(uri)
+ request = Handsoap::Http::Request.new(uri, :post)
headers.each do |key, value|
request.add_header(key, value)
end

0 comments on commit 41c5256

Please sign in to comment.