Issues

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

Issue Type: Bug Created: 2013-03-25T12:35:04.000+0000 Last Updated: 2013-04-05T16:06:54.000+0000 Status: Closed Fix version(s): Reporter: Matt Kynx (kynx) Assignee: None Tags: Related issues: Attachments: - ZF-12549-test.patch

Description

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).

Comments

Posted by Matt Kynx (kynx) on 2013-03-25T16:51:44.000+0000

Added check for content type to existing copyObject test

Posted by Ralph Schindler (ralph) on 2013-04-05T16:06:54.000+0000

This issue has been closed on Jira and moved to GitHub for issue tracking. To continue following the resolution of this issues, please visit: https://github.com/zendframework/zf1/issues/67

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts