Permalink
Browse files

bug fixing for the v1.0.7

  • Loading branch information...
1 parent 1e29c8a commit d18f4b4412b50beb643cb80c6e9841fbfb7843e2 zhou committed Aug 24, 2009
Showing with 6 additions and 3 deletions.
  1. +3 −0 Changelog
  2. +1 −1 http_request.gemspec
  3. +2 −2 lib/http_request.rb
View
3 Changelog
@@ -1,3 +1,6 @@
+v1.0.7
+ * bug fixing for the ':ajax' and ':xhr' directive
+
v1.0.6
* bug fixing for the 'attr_accessor :url'
View
2 http_request.gemspec
@@ -3,7 +3,7 @@ SPEC=Gem::Specification.new do |s|
s.homepage = 'http://my.cnzxh.net'
s.rubyforge_project = "http_request.rb"
s.name = 'http_request.rb'
- s.version = '1.0.6'
+ s.version = '1.0.7'
s.author = 'xianhua.zhou'
s.email = 'xianhua.zhou@gmail.com'
s.platform = Gem::Platform::RUBY
View
4 lib/http_request.rb
@@ -33,7 +33,7 @@ class HttpRequest
include Singleton
# version
- VERSION = '1.0.5'.freeze
+ VERSION = '1.0.7'.freeze
def self.version;VERSION;end
# avaiabled http methods
@@ -205,7 +205,7 @@ def init_args(method, options)
@headers['Accept-Encoding'] = 'gzip,deflate' if defined? Zlib
# ajax calls?
- @headers['X_REQUESTED_WITH'] = 'XmlHttpRequest' if @options[:ajax] or @options[:xhr]
+ @headers['X_REQUESTED_WITH'] = 'XMLHttpRequest' if @options[:ajax] or @options[:xhr]
# Basic Authenication
@headers['Authorization'] = "Basic " + [@uri.userinfo].pack('m').delete!("\r\n") if @uri.userinfo

0 comments on commit d18f4b4

Please sign in to comment.