fix: Prevent upload requests from form-encoding their queries
This commit is contained in:
1 parent
6dba874ed0
commit
85763ece2f
1 file changed
+4
@@ -138,6 +138,10 @@ module Google
|
||||
@state = :start
|
||||
@upload_url = nil
|
||||
@offset = 0
|
||||
# Prevent the command from populating the body with form encoding, by
|
||||
# asserting that it already has a body. Form encoding is never used
|
||||
# by upload requests.
|
||||
self.body = '' unless self.body
|
||||
super
|
||||
end
|
||||
|
||||
|
||||
Reference in new issue
Block a user