php-mod / curl

This library provides an object-oriented and dependency free wrapper of the PHP cURL extension.
MIT License
328 stars 120 forks source link

Multiple HTTP/1.1 100 Continue responses causes corrupt header array #19

Closed zurborg closed 8 years ago

zurborg commented 8 years ago

When a server responses with more than one HTTP/1.1 100 Continue message, the header array contains only the second HTTP/1.1 100 Continue message and the actual headers are part of the response body.

One solution is to change the corresponding if-condition to a while-loop.

I'll make a pull request to solve this issue.