ZF-12549: Zend_Service_Rackspace_Files::copyObject sets Content-Type to 'application/x-www-form-urlencoded'


If you try to copy an object from one cloud files location to another it sets the Content-Type header to 'application/x-www-form-urlencoded'. It should preserve the content type.

This looks like's it's being caused by Zend_Http_Client being overzealous with its encType. The workaround in the attached patch sets it to an empty string for PUT requests that have no body, which prevents the incorrect header being added (Z_H_C checks encType === null before adding the header).


Added check for content type to existing copyObject test

This issue has been closed on Jira and moved to GitHub for issue tracking. To continue following the resolution of this issues, please visit: