http2: curl_pushheader_byname now takes a const char *

This commit is contained in:
Daniel Stenberg
2015-06-02 11:50:00 +02:00
parent bf445b6e12
commit a384f28ca6
3 changed files with 10 additions and 10 deletions

View File

@@ -236,7 +236,7 @@ char *curl_pushheader_bynum(struct curl_pushheaders *h, size_t num)
/*
* push header access function. Only to be used from within the push callback
*/
char *curl_pushheader_byname(struct curl_pushheaders *h, char *header)
char *curl_pushheader_byname(struct curl_pushheaders *h, const char *header)
{
/* Verify that we got a good easy handle in the push header struct, mostly to
detect rubbish input fast(er). */