mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-16 00:41:41 +00:00
FS-11622: WS headers case insensitive
This commit is contained in:
parent
c17895457c
commit
179430cecc
@ -150,7 +150,7 @@ static int cheezy_get_var(char *data, char *name, char *buf, size_t buflen)
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
do {
|
do {
|
||||||
if(!strncmp(p,name,strlen(name)) && *(p+strlen(name))==':') break;
|
if(!strncasecmp(p,name,strlen(name)) && *(p+strlen(name))==':') break;
|
||||||
} while((p = (strstr(p,"\n")+1))!=(char *)1);
|
} while((p = (strstr(p,"\n")+1))!=(char *)1);
|
||||||
|
|
||||||
|
|
||||||
|
@ -150,7 +150,7 @@ static int cheezy_get_var(char *data, char *name, char *buf, size_t buflen)
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
do {
|
do {
|
||||||
if(!strncmp(p,name,strlen(name)) && *(p+strlen(name))==':') break;
|
if(!strncasecmp(p,name,strlen(name)) && *(p+strlen(name))==':') break;
|
||||||
} while((p = (strstr(p,"\n")+1))!=(char *)1);
|
} while((p = (strstr(p,"\n")+1))!=(char *)1);
|
||||||
|
|
||||||
|
|
||||||
|
@ -119,7 +119,7 @@ static int cheezy_get_var(char *data, char *name, char *buf, size_t buflen)
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
do {
|
do {
|
||||||
if(!strncmp(p,name,strlen(name)) && *(p+strlen(name))==':') break;
|
if(!strncasecmp(p,name,strlen(name)) && *(p+strlen(name))==':') break;
|
||||||
} while((p = (strstr(p,"\n")+1))!=(char *)1);
|
} while((p = (strstr(p,"\n")+1))!=(char *)1);
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user