Skip to content
Browse files

bug fixing for the release v1.0.6

  • Loading branch information...
1 parent 5abd3df commit 1e29c8ad9503ac4be585e469102f4a4b7e347fe8 zhou committed Jul 7, 2009
Showing with 9 additions and 6 deletions.
  1. +3 −0 Changelog
  2. +1 −1 README.rdoc
  3. +1 −1 http_request.gemspec
  4. +4 −4 lib/http_request.rb
View
3 Changelog
@@ -1,3 +1,6 @@
+v1.0.6
+ * bug fixing for the 'attr_accessor :url'
+
v1.0.5
* add 2 options ":xhr" and ":ajax", can send a request looks like AJAX calling.
View
2 README.rdoc
@@ -225,7 +225,7 @@ download multiple files from a directory
bug fixing, testing and testing...
== LATEST VERSION
- 1.0.5
+ 1.0.6
== Author
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.5'
+ s.version = '1.0.6'
s.author = 'xianhua.zhou'
s.email = 'xianhua.zhou@gmail.com'
s.platform = Gem::Platform::RUBY
View
8 lib/http_request.rb
@@ -11,9 +11,9 @@
#
# == Version
#
-# v1.0.5
+# v1.0.6
#
-# Last Change: 6 July, 2009
+# Last Change: 7 July, 2009
#
# == Author
#
@@ -286,7 +286,7 @@ def send_request(http)
# GO !!
if @options[:method] =~ /^(get|head|options|delete|move|copy|trace|)$/
@options[:parameters] = "?#{@options[:parameters]}" if @options[:parameters]
- http.method(@options[:method]).call("#{@uri.path}#{@options[:parameters]}", @headers)
+ http.method(@options[:method]).call("#{@uri.path}#{@options[:parameters] unless @options[:parameters].eql?('?')}", @headers)
else
http.method(@options[:method]).call(@uri.path, @options[:parameters], @headers)
end
@@ -298,7 +298,7 @@ def send_request(http)
module Net
class HTTPResponse
- attr :url
+ attr_accessor :url
# get cookies as a hash
def cookies

0 comments on commit 1e29c8a

Please sign in to comment.
Something went wrong with that request. Please try again.