Skip to content

Commit ad7e2ba

Browse files
committed
Return raw response if no body
1 parent a7dd348 commit ad7e2ba

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

templates/ruby/lib/container/client.rb.twig

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,11 @@ module {{ spec.title | caseUcfirst }}
161161
raise Appwrite::Exception.new(response.body, response.code, response)
162162
end
163163

164-
return response.body if response.body_permitted?
164+
if response.respond_to?("body_permitted?")
165+
return response.body if response.body_permitted?
166+
end
167+
168+
return response
165169
end
166170

167171
def encode_form_data(value, key=nil)

0 commit comments

Comments
 (0)