← Commit list

b2ae19eed4

Daniel Stenberg
Daniel Stenberg
2025-10-01
FAILED Duration: 187s

Subject

tool_getparam: warn if provided header looks malformed

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

src/tool_getparam.c+4 -0
@@ -1267,6 +1267,10 @@ static ParameterError parse_header(struct OperationConfig *config,
}
}
else {
+ if(!strchr(nextarg, ':') && !strchr(nextarg, ';')) {
+ warnf("The provided %s header '%s' does not look like a header?",
+ (cmd == C_PROXY_HEADER) ? "proxy": "HTTP", nextarg);
+ }
if(cmd == C_PROXY_HEADER) /* --proxy-header */
err = add2list(&config->proxyheaders, nextarg);
else