Tighten use of form-encoding to only cases where a JSON body is not ever allowed
This commit is contained in:
1 parent
6089c866ac
commit
e13da8e05e
3 files changed
+20
-4
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user