Browse files

Fixed some type errors.

  • Loading branch information...
1 parent ccd7787 commit f33f0f9c5540810a35117550343409891377c30a Zhou Xianhua committed Nov 26, 2010
Showing with 6 additions and 6 deletions.
  1. +2 −2 Changelog
  2. +1 −1 README.rdoc
  3. +3 −3 lib/http_request.rb
View
4 Changelog
@@ -1,9 +1,9 @@
v1.1.11
- * define http methods such as "get", "post" etc. dynamiclly instead of
+ * define http methods such as "get", "post" etc. dynamically instead of
using "method_missing".
v1.1.10
- * make it wroks on Ruby1.9.2
+ * make it works on Ruby1.9.2
v1.1.9
* re-format code with 2 spaces and fixed the version number
View
2 README.rdoc
@@ -209,7 +209,7 @@ download multiple files from a directory
== check whether or not the remote site is available (since v1.0.3)
- # return true if can access to the website with socket connecation even it is a 500 or 404 page, otherwise, return false
+ # return true if can access to the website with socket connection even it is a 500 or 404 page, otherwise, return false
HttpRequest.available?('http://www.github.com/')
== send XML data via the post method (since v1.0.4)
View
6 lib/http_request.rb
@@ -35,7 +35,7 @@ class << self
VERSION = '1.1.10'.freeze
def version;VERSION;end
- # avaiabled http methods
+ # available http methods
def http_methods
%w{get head post put proppatch lock unlock options propfind delete move copy mkcol trace}
end
@@ -274,7 +274,7 @@ def parse_options(method, options)
# ajax calls?
@headers['X-Requested-With'] = 'XMLHttpRequest' if @options[:ajax] or @options[:xhr]
- # Http Authenication
+ # Http Authentication
parse_http_auth
# headers
@@ -398,7 +398,7 @@ def send_request(http)
h
end
- # process the redirectation if need
+ # process the redirection if need
def process_redirection(response, &block)
case response
when Net::HTTPRedirection

0 comments on commit f33f0f9

Please sign in to comment.