Closed kelunik closed 4 years ago
I'm seeing this in some code:
$request->setHeaders($originRequest->getHeaders());
we might need a setRawHeaders method to allow
$request->setRawHeaders($originRequest->getRawHeaders());
?
Not sure how often that will happen. I guess the following is enough for now?
foreach ($originRequest->getRawHeaders() as [$key, $value]) {
$request->addHeader($key, $value);
}
That's what I did, so yes!
Relates to amphp/http-client#242.