mirror of
https://github.com/curl/curl.git
synced 2026-08-24 12:33:37 +03:00
strcase: use curl_str(n)equal for case insensitive matches
No point in having two entry points for the same functions. Also merged the *safe* function treatment into these so that they can also be used when one or both pointers are NULL. Closes #9837
This commit is contained in:
parent
7399fa5b05
commit
3f039dfd6f
7 changed files with 36 additions and 47 deletions
|
|
@ -1024,9 +1024,9 @@ static int on_header(nghttp2_session *session, const nghttp2_frame *frame,
|
|||
if(!check)
|
||||
/* no memory */
|
||||
return NGHTTP2_ERR_CALLBACK_FAILURE;
|
||||
if(!Curl_strcasecompare(check, (const char *)value) &&
|
||||
if(!strcasecompare(check, (const char *)value) &&
|
||||
((conn->remote_port != conn->given->defport) ||
|
||||
!Curl_strcasecompare(conn->host.name, (const char *)value))) {
|
||||
!strcasecompare(conn->host.name, (const char *)value))) {
|
||||
/* This is push is not for the same authority that was asked for in
|
||||
* the URL. RFC 7540 section 8.2 says: "A client MUST treat a
|
||||
* PUSH_PROMISE for which the server is not authoritative as a stream
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue