mirror of
https://github.com/versity/versitygw.git
synced 2026-07-07 08:36:42 +00:00
07c970e3fe
The fifth parameter of request() is useAdminEndpoint (boolean), but putBucketPolicy was passing a Content-Type header object instead. This caused useAdminEndpoint to be truthy and contentType to default to 'application/xml' instead of 'application/json'. Fixed by passing false for useAdminEndpoint and 'application/json' as the contentType argument. Fixes #1928