http_request.rb 1.0.5 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/Changelog +3 -0
- data/README.rdoc +1 -1
- data/lib/http_request.rb +4 -4
- metadata +4 -6
data/Changelog
CHANGED
data/README.rdoc
CHANGED
data/lib/http_request.rb
CHANGED
@@ -11,9 +11,9 @@
|
|
11
11
|
#
|
12
12
|
# == Version
|
13
13
|
#
|
14
|
-
# v1.0.
|
14
|
+
# v1.0.6
|
15
15
|
#
|
16
|
-
# Last Change:
|
16
|
+
# Last Change: 7 July, 2009
|
17
17
|
#
|
18
18
|
# == Author
|
19
19
|
#
|
@@ -286,7 +286,7 @@ class HttpRequest
|
|
286
286
|
# GO !!
|
287
287
|
if @options[:method] =~ /^(get|head|options|delete|move|copy|trace|)$/
|
288
288
|
@options[:parameters] = "?#{@options[:parameters]}" if @options[:parameters]
|
289
|
-
http.method(@options[:method]).call("#{@uri.path}#{@options[:parameters]}", @headers)
|
289
|
+
http.method(@options[:method]).call("#{@uri.path}#{@options[:parameters] unless @options[:parameters].eql?('?')}", @headers)
|
290
290
|
else
|
291
291
|
http.method(@options[:method]).call(@uri.path, @options[:parameters], @headers)
|
292
292
|
end
|
@@ -298,7 +298,7 @@ end
|
|
298
298
|
module Net
|
299
299
|
class HTTPResponse
|
300
300
|
|
301
|
-
|
301
|
+
attr_accessor :url
|
302
302
|
|
303
303
|
# get cookies as a hash
|
304
304
|
def cookies
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: http_request.rb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- xianhua.zhou
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-07-
|
12
|
+
date: 2009-07-07 00:00:00 +08:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
@@ -27,8 +27,6 @@ files:
|
|
27
27
|
- lib/http_request.rb
|
28
28
|
has_rdoc: true
|
29
29
|
homepage: http://my.cnzxh.net
|
30
|
-
licenses: []
|
31
|
-
|
32
30
|
post_install_message:
|
33
31
|
rdoc_options: []
|
34
32
|
|
@@ -49,9 +47,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
49
47
|
requirements: []
|
50
48
|
|
51
49
|
rubyforge_project: http_request.rb
|
52
|
-
rubygems_version: 1.3.
|
50
|
+
rubygems_version: 1.3.1
|
53
51
|
signing_key:
|
54
|
-
specification_version:
|
52
|
+
specification_version: 2
|
55
53
|
summary: http_request.rb is a small, lightweight, powerful HttpRequest class based on the 'net/http' and 'net/ftp' libraries
|
56
54
|
test_files: []
|
57
55
|
|