mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-07-05 12:31:47 +02:00
Strip empty headers before sending
This commit is contained in:
@@ -376,6 +376,9 @@ impl HttpSender for ReqwestSender {
|
|||||||
|
|
||||||
// Add headers
|
// Add headers
|
||||||
for header in request.headers {
|
for header in request.headers {
|
||||||
|
if header.0.is_empty() {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
req_builder = req_builder.header(&header.0, &header.1);
|
req_builder = req_builder.header(&header.0, &header.1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user