ZF-3515: Http client should reset Slug header (set when uploading file using APP)
When uploading a file using Zend_Gdata_App's post() method, a Slug header is added to the StaticHttpClient's headers. If you use the same Zend_Gdata_App instance to POST an atom entry ("application/atom+xml;type=entry") afterwards, the Slug header is also included in this request. This may confuse the server into believing that the request wants to upload a binary file, instead of sending data.
Simple solution, add the following line to Zend_Http_Client's resetParameters(): if (isset($this->headers['slug'])) unset($this->headers['slug']);