thin_http 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/lib/thin_http.rb +1 -1
- data/test/scaffold/htdocs/cgi/redirect_loop.cgi +0 -2
- metadata +13 -13
data/Rakefile
CHANGED
@@ -10,7 +10,7 @@ WEBRICK_LOG_FILE = 'webrick/log'
|
|
10
10
|
gem_spec = Gem::Specification.new do |s|
|
11
11
|
s.add_dependency 'mime', '>=0.1.0'
|
12
12
|
s.name = 'thin_http'
|
13
|
-
s.version = '0.1.
|
13
|
+
s.version = '0.1.1'
|
14
14
|
s.summary = 'Lightweight and user-friendly HTTP client library'
|
15
15
|
s.test_files = FileList['test/*_test.rb']
|
16
16
|
s.files = FileList['README', 'Rakefile', 'lib/**/*.rb', 'test/**/*']
|
data/lib/thin_http.rb
CHANGED
@@ -193,10 +193,10 @@ class ThinHTTP
|
|
193
193
|
request_headers.each {|name, value| request[name] = value}
|
194
194
|
|
195
195
|
response = connection.request(request)
|
196
|
+
save_response_headers(response)
|
196
197
|
|
197
198
|
case response
|
198
199
|
when Net::HTTPSuccess
|
199
|
-
save_response_headers response
|
200
200
|
response.body
|
201
201
|
when Net::HTTPRedirection
|
202
202
|
uri = URI.parse(response['location'])
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: thin_http
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Clint Pachl
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-11-
|
12
|
+
date: 2008-11-17 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -33,29 +33,29 @@ extra_rdoc_files: []
|
|
33
33
|
files:
|
34
34
|
- README
|
35
35
|
- Rakefile
|
36
|
+
- lib/multipart_form_data.rb
|
36
37
|
- lib/thin_http.rb
|
37
38
|
- lib/cookie_collection.rb
|
38
|
-
- lib/multipart_form_data.rb
|
39
39
|
- test/scaffold
|
40
|
-
- test/scaffold/image.jpg
|
41
|
-
- test/scaffold/ascii.txt
|
42
40
|
- test/scaffold/htdocs
|
43
41
|
- test/scaffold/htdocs/cgi
|
44
42
|
- test/scaffold/htdocs/cgi/echo_get_params.cgi
|
45
|
-
- test/scaffold/htdocs/cgi/echo_post_params.cgi
|
46
|
-
- test/scaffold/htdocs/cgi/redirect_loop.cgi
|
47
|
-
- test/scaffold/htdocs/cgi/redirect_to_external.cgi
|
48
43
|
- test/scaffold/htdocs/cgi/print_env.cgi
|
49
44
|
- test/scaffold/htdocs/cgi/set_cookie.cgi
|
45
|
+
- test/scaffold/htdocs/cgi/redirect_to_external.cgi
|
46
|
+
- test/scaffold/htdocs/cgi/echo_post_params.cgi
|
50
47
|
- test/scaffold/htdocs/cgi/redirect_to_print_env.cgi
|
48
|
+
- test/scaffold/htdocs/cgi/redirect_loop.cgi
|
51
49
|
- test/scaffold/htdocs/index.html
|
52
|
-
- test/scaffold/unknown.yyy
|
53
|
-
- test/scaffold/form_data.msg
|
54
50
|
- test/scaffold/form_data_unknown.msg
|
51
|
+
- test/scaffold/form_data.msg
|
52
|
+
- test/scaffold/image.jpg
|
53
|
+
- test/scaffold/ascii.txt
|
54
|
+
- test/scaffold/unknown.yyy
|
55
|
+
- test/test_helper.rb
|
55
56
|
- test/thin_http_test.rb
|
56
|
-
- test/multipart_form_data_test.rb
|
57
57
|
- test/cookie_collection_test.rb
|
58
|
-
- test/
|
58
|
+
- test/multipart_form_data_test.rb
|
59
59
|
has_rdoc: true
|
60
60
|
homepage: http://thinhttp.rubyforge.org/
|
61
61
|
post_install_message:
|
@@ -84,5 +84,5 @@ specification_version: 2
|
|
84
84
|
summary: Lightweight and user-friendly HTTP client library
|
85
85
|
test_files:
|
86
86
|
- test/thin_http_test.rb
|
87
|
-
- test/multipart_form_data_test.rb
|
88
87
|
- test/cookie_collection_test.rb
|
88
|
+
- test/multipart_form_data_test.rb
|