You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.
When providing a request body for a DELETE request, Zend\Http\Client will add the 'Content-Length' header but will not add and send the actual body resulting in a curl call that hangs for a very long period of time. The client should either send both a body and the header or neither. Since DELETE requests can have a body, I'd suggest sending both. From the IETF spec: "The presence of a message-body in a request is signaled by the inclusion of a Content-Length or Transfer-Encoding header field in the request's message-headers." -- http://tools.ietf.org/html/rfc2616
To fix, Zend\Http\Client\Adapter\Curl line 396 (ZF 2.2.7) should have an additional elseif to add the body to DELETE requests as well (or the 'Content-Length' header removed before sending the request), ideally the first option as below:
When providing a request body for a DELETE request, Zend\Http\Client will add the 'Content-Length' header but will not add and send the actual body resulting in a curl call that hangs for a very long period of time. The client should either send both a body and the header or neither. Since DELETE requests can have a body, I'd suggest sending both. From the IETF spec: "The presence of a message-body in a request is signaled by the inclusion of a Content-Length or Transfer-Encoding header field in the request's message-headers." -- http://tools.ietf.org/html/rfc2616
To fix, Zend\Http\Client\Adapter\Curl line 396 (ZF 2.2.7) should have an additional elseif to add the body to DELETE requests as well (or the 'Content-Length' header removed before sending the request), ideally the first option as below:
The text was updated successfully, but these errors were encountered: