* src/http.c: Don't cast 3rd param to request_set_header.

This commit is contained in:
Tim Rühsen 2020-03-05 19:19:42 +01:00
parent 4e5a75566a
commit 6377ae1647

View File

@ -291,7 +291,7 @@ request_set_user_header (struct request *req, const char *header)
while (c_isspace (*p)) while (c_isspace (*p))
++p; ++p;
request_set_header (req, name, (char *) p, rel_name); request_set_header (req, name, p, rel_name);
} }
/* Remove the header with specified name from REQ. Returns true if /* Remove the header with specified name from REQ. Returns true if
@ -1878,7 +1878,7 @@ initialize_request (const struct url *u, struct http_stat *hs, int *dt, struct u
req = request_new (meth, meth_arg); req = request_new (meth, meth_arg);
} }
request_set_header (req, "Referer", (char *) hs->referer, rel_none); request_set_header (req, "Referer", hs->referer, rel_none);
if (*dt & SEND_NOCACHE) if (*dt & SEND_NOCACHE)
{ {
/* Cache-Control MUST be obeyed by all HTTP/1.1 caching mechanisms... */ /* Cache-Control MUST be obeyed by all HTTP/1.1 caching mechanisms... */