rdfobjects 0.6.1 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rdf_objects/http_client.rb +5 -2
- metadata +2 -2
@@ -17,10 +17,13 @@ module RDFObject
|
|
17
17
|
response = Net::HTTP.start(u.host, u.port) do | http |
|
18
18
|
http.request(request)
|
19
19
|
end
|
20
|
-
if response.code
|
20
|
+
if response.code == "200"
|
21
|
+
return response.body
|
22
|
+
elsif response.code == "303"
|
23
|
+
return fetch(response.location)
|
24
|
+
else
|
21
25
|
raise response.message
|
22
26
|
end
|
23
|
-
response.body
|
24
27
|
end
|
25
28
|
|
26
29
|
def self.register_proxy(uri,proxy)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rdfobjects
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ross Singer
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-10-
|
12
|
+
date: 2009-10-29 00:00:00 -04:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|