Fix PUT/DELETE in s3.query

Was broken in 8ed7c92 during move to requests.

- PUT now uploads data
- Fixes AttributeError
Merge pull request #19079 from Lendar/fix-s3-put

Fix PUT/DELETE in s3.query