yawast 0.6.0.beta3 → 0.6.0.beta4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/lib/shared/http.rb CHANGED
@@ -21,13 +21,13 @@ module Yawast
21
21
  begin
22
22
  req = get_http(uri)
23
23
  req.use_ssl = uri.scheme == 'https'
24
- req.head(uri.path, get_headers)
24
+ req.head(uri, get_headers)
25
25
  rescue
26
26
  #if we get here, the HEAD failed - but GET may work
27
27
  #so we silently fail back to using GET instead
28
28
  req = get_http(uri)
29
29
  req.use_ssl = uri.scheme == 'https'
30
- res = req.request_get(uri.path, get_headers)
30
+ res = req.request_get(uri, get_headers)
31
31
  res
32
32
  end
33
33
  end
@@ -38,7 +38,7 @@ module Yawast
38
38
  begin
39
39
  req = get_http(uri)
40
40
  req.use_ssl = uri.scheme == 'https'
41
- res = req.request_get(uri.path, get_headers(headers))
41
+ res = req.request_get(uri, get_headers(headers))
42
42
  body = res.read_body
43
43
  rescue
44
44
  #do nothing for now
@@ -51,7 +51,7 @@ module Yawast
51
51
  begin
52
52
  req = get_http(uri)
53
53
  req.use_ssl = uri.scheme == 'https'
54
- res = req.request_put(uri.path, body, get_headers(headers))
54
+ res = req.request_put(uri, body, get_headers(headers))
55
55
  rescue
56
56
  #do nothing for now
57
57
  end
@@ -62,7 +62,7 @@ module Yawast
62
62
  def self.get_status_code(uri)
63
63
  req = get_http(uri)
64
64
  req.use_ssl = uri.scheme == 'https'
65
- res = req.head(uri.path, get_headers)
65
+ res = req.head(uri, get_headers)
66
66
  res.code
67
67
  end
68
68
 
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Yawast
2
- VERSION = '0.6.0.beta3'
2
+ VERSION = '0.6.0.beta4'
3
3
  end