plain_http 0.1 → 0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/plain_http.rb +1 -2
  2. metadata +6 -6
data/lib/plain_http.rb CHANGED
@@ -26,8 +26,7 @@ class PlainHTTP
26
26
  method_class_name = method.to_s.downcase.sub(/^[a-z]/i) {|m| m.upcase}
27
27
  req_class = Net::HTTP.const_get(method_class_name)
28
28
  uri = URI.parse(url)
29
- path = uri.path == '' ? '/' : uri.path
30
- req = req_class.new(path, headers)
29
+ req = req_class.new(uri.request_uri, headers)
31
30
  if data.respond_to?(:to_hash)
32
31
  req.set_form_data(data.to_hash)
33
32
  elsif data.to_s != ''
metadata CHANGED
@@ -1,12 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: plain_http
3
3
  version: !ruby/object:Gem::Version
4
- hash: 9
5
- prerelease:
4
+ hash: 15
5
+ prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 1
9
- version: "0.1"
8
+ - 2
9
+ version: "0.2"
10
10
  platform: ruby
11
11
  authors:
12
12
  - Chris Cherry
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-03-27 00:00:00 -07:00
17
+ date: 2011-06-30 00:00:00 -07:00
18
18
  default_executable:
19
19
  dependencies: []
20
20
 
@@ -58,7 +58,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
58
58
  requirements: []
59
59
 
60
60
  rubyforge_project:
61
- rubygems_version: 1.6.1
61
+ rubygems_version: 1.3.7
62
62
  signing_key:
63
63
  specification_version: 3
64
64
  summary: An easy to remember interface to Net::HTTP