added support for custom headers in PUT requests