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.
Files changed (4) hide show
  1. data/Changelog +3 -0
  2. data/README.rdoc +1 -1
  3. data/lib/http_request.rb +4 -4
  4. metadata +5 -5
data/Changelog CHANGED
@@ -1,3 +1,6 @@
1
+ v1.1.6
2
+ * replaced X_REQUESTED_WITH with X-Requested-With for sending AJAX request
3
+
1
4
  v1.1.6
2
5
  * fixed parsing cookies
3
6
 
data/README.rdoc CHANGED
@@ -227,4 +227,4 @@ download multiple files from a directory
227
227
  bug fixing, testing and testing...
228
228
 
229
229
  == LATEST VERSION
230
- 1.1.6
230
+ 1.1.7
data/lib/http_request.rb CHANGED
@@ -11,9 +11,9 @@
11
11
  #
12
12
  # == Version
13
13
  #
14
- # v1.1.6
14
+ # v1.1.7
15
15
  #
16
- # Last Change: 4 Aug, 2010
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.6'.freeze
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['X_REQUESTED_WITH'] = 'XMLHttpRequest' if @options[:ajax] or @options[:xhr]
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: 31
4
+ hash: 29
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 1
9
- - 6
10
- version: 1.1.6
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-04 00:00:00 +08:00
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://my.cnzxh.net
37
+ homepage: http://github.com/xianhuazhou
38
38
  licenses: []
39
39
 
40
40
  post_install_message: