Tighten use of form-encoding to only cases where a JSON body is not ever allowed

This commit is contained in:
Steve Bazyl committed 2016-09-08 13:40:30 -07:00
1 parent 6089c866ac
commit e13da8e05e
3 files changed
+20 -4

No files matched your search

+4
View File
@@ -105,6 +105,10 @@ module Google
end
end
def allow_form_encoding?
request_representation.nil? && super
end
private
# Attempt to parse a JSON error message, returning the first found error