http_request.rb 1.1.6 → 1.1.7
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 +5 -5
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.1.
|
14
|
+
# v1.1.7
|
15
15
|
#
|
16
|
-
# Last Change:
|
16
|
+
# Last Change: 18 Aug, 2010
|
17
17
|
#
|
18
18
|
# == Author
|
19
19
|
#
|
@@ -32,7 +32,7 @@ class HttpRequest
|
|
32
32
|
include Singleton
|
33
33
|
class << self
|
34
34
|
# version
|
35
|
-
VERSION = '1.1.
|
35
|
+
VERSION = '1.1.7'.freeze
|
36
36
|
def version;VERSION;end
|
37
37
|
|
38
38
|
# avaiabled http methods
|
@@ -261,7 +261,7 @@ class HttpRequest
|
|
261
261
|
@headers['Accept-Encoding'] = 'gzip,deflate' if defined? ::Zlib
|
262
262
|
|
263
263
|
# ajax calls?
|
264
|
-
@headers['
|
264
|
+
@headers['X-Requested-With'] = 'XMLHttpRequest' if @options[:ajax] or @options[:xhr]
|
265
265
|
|
266
266
|
# Http Authenication
|
267
267
|
parse_http_auth
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: http_request.rb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 29
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 1.1.
|
9
|
+
- 7
|
10
|
+
version: 1.1.7
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- xianhua.zhou
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-08-
|
18
|
+
date: 2010-08-18 00:00:00 +08:00
|
19
19
|
default_executable:
|
20
20
|
dependencies: []
|
21
21
|
|
@@ -34,7 +34,7 @@ files:
|
|
34
34
|
- test/test_http_request.rb
|
35
35
|
- test/web_server.rb
|
36
36
|
has_rdoc: true
|
37
|
-
homepage: http://
|
37
|
+
homepage: http://github.com/xianhuazhou
|
38
38
|
licenses: []
|
39
39
|
|
40
40
|
post_install_message:
|