Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed some type errors.

  • Loading branch information...
commit f33f0f9c5540810a35117550343409891377c30a 1 parent ccd7787
Zhou Xianhua authored

Showing 3 changed files with 6 additions and 6 deletions. Show diff stats Hide diff stats

  1. +2 2 Changelog
  2. +1 1  README.rdoc
  3. +3 3 lib/http_request.rb
4 Changelog
... ... @@ -1,9 +1,9 @@
1 1 v1.1.11
2   - * define http methods such as "get", "post" etc. dynamiclly instead of
  2 + * define http methods such as "get", "post" etc. dynamically instead of
3 3 using "method_missing".
4 4
5 5 v1.1.10
6   - * make it wroks on Ruby1.9.2
  6 + * make it works on Ruby1.9.2
7 7
8 8 v1.1.9
9 9 * re-format code with 2 spaces and fixed the version number
2  README.rdoc
Source Rendered
@@ -209,7 +209,7 @@ download multiple files from a directory
209 209
210 210 == check whether or not the remote site is available (since v1.0.3)
211 211
212   - # return true if can access to the website with socket connecation even it is a 500 or 404 page, otherwise, return false
  212 + # return true if can access to the website with socket connection even it is a 500 or 404 page, otherwise, return false
213 213 HttpRequest.available?('http://www.github.com/')
214 214
215 215 == send XML data via the post method (since v1.0.4)
6 lib/http_request.rb
@@ -35,7 +35,7 @@ class << self
35 35 VERSION = '1.1.10'.freeze
36 36 def version;VERSION;end
37 37
38   - # avaiabled http methods
  38 + # available http methods
39 39 def http_methods
40 40 %w{get head post put proppatch lock unlock options propfind delete move copy mkcol trace}
41 41 end
@@ -274,7 +274,7 @@ def parse_options(method, options)
274 274 # ajax calls?
275 275 @headers['X-Requested-With'] = 'XMLHttpRequest' if @options[:ajax] or @options[:xhr]
276 276
277   - # Http Authenication
  277 + # Http Authentication
278 278 parse_http_auth
279 279
280 280 # headers
@@ -398,7 +398,7 @@ def send_request(http)
398 398 h
399 399 end
400 400
401   - # process the redirectation if need
  401 + # process the redirection if need
402 402 def process_redirection(response, &block)
403 403 case response
404 404 when Net::HTTPRedirection

0 comments on commit f33f0f9

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