Skip to content
This repository was archived by the owner on Jan 6, 2024. It is now read-only.

Commit 3e5df01

Browse files
committed
Better phpdoc for sanitize on curl
1 parent f29c2b5 commit 3e5df01

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Client.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,10 @@ private function sanitizeWithTrace(RequestInterface $request)
103103
}
104104

105105
/**
106-
* Get specific curl options for Zend Curl Adapter.
106+
* On cUrl Adapter, zend does not include the body if it's not a POST, PUT or PATCH request but does not
107+
* rewrite the content length header.
108+
* This can lead to error from the server has it can expect a specific content length, but don't have
109+
* a body, so we set content-length to 0 to avoid bad reading from the server.
107110
*
108111
* @param RequestInterface $request
109112
*

0 commit comments

Comments
 (0)