nexpose 0.5.3 → 0.5.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/nexpose/ajax.rb +2 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 00359dd620e92f676ddd3fa63454edcde20be901
|
4
|
+
data.tar.gz: e4232827f4eb8c05c0f3f384e9d15dc1c7b21de5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 06b52c03d3a839c289bc140c5c8c741a5119040681bdb7f4946ea9dc26d11f9e518c8ec5717a525fa072c385e7763939c268c45cbe87af9f07f7800f7071521f
|
7
|
+
data.tar.gz: 35fa17bad2fa38cb8333510ea62e5cd63a90051726656531b05b024bfc5f43766efa77c71b6a31fcfd6028a2293f1a43e3a99a96f7f700c0a543338a111688e1
|
data/lib/nexpose/ajax.rb
CHANGED
@@ -118,6 +118,8 @@ module Nexpose
|
|
118
118
|
case response
|
119
119
|
when Net::HTTPOK
|
120
120
|
response.body
|
121
|
+
when Net::HTTPCreated
|
122
|
+
response.body
|
121
123
|
else
|
122
124
|
req_type = request.class.name.split('::').last.upcase
|
123
125
|
raise Nexpose::APIError.new(response, "#{req_type} request to #{request.path} failed. #{request.body}")
|