mirror of
https://github.com/versity/versitygw.git
synced 2026-03-27 18:05:00 +00:00
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