mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-11-16 21:51:13 +01:00
Strip empty headers before sending
This commit is contained in:
1 parent
ba8f85baaf
commit
6cba38ac89
1 file changed
+3
@@ -376,6 +376,9 @@ impl HttpSender for ReqwestSender {
|
||||
|
||||
// Add headers
|
||||
for header in request.headers {
|
||||
if header.0.is_empty() {
|
||||
continue;
|
||||
}
|
||||
req_builder = req_builder.header(&header.0, &header.1);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user