From 179430ceccfa001e9987790d584663306714cc08 Mon Sep 17 00:00:00 2001 From: Dragos Oancea Date: Mon, 21 Jan 2019 18:00:36 -0500 Subject: [PATCH] FS-11622: WS headers case insensitive --- libs/sofia-sip/libsofia-sip-ua/tport/ws.c | 2 +- src/mod/endpoints/mod_verto/ws.c | 2 +- src/mod/xml_int/mod_xml_rpc/ws.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/sofia-sip/libsofia-sip-ua/tport/ws.c b/libs/sofia-sip/libsofia-sip-ua/tport/ws.c index 8d6de2909b..c004781e12 100644 --- a/libs/sofia-sip/libsofia-sip-ua/tport/ws.c +++ b/libs/sofia-sip/libsofia-sip-ua/tport/ws.c @@ -150,7 +150,7 @@ static int cheezy_get_var(char *data, char *name, char *buf, size_t buflen) */ 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); diff --git a/src/mod/endpoints/mod_verto/ws.c b/src/mod/endpoints/mod_verto/ws.c index 86c73c18fa..b4702d30c3 100644 --- a/src/mod/endpoints/mod_verto/ws.c +++ b/src/mod/endpoints/mod_verto/ws.c @@ -150,7 +150,7 @@ static int cheezy_get_var(char *data, char *name, char *buf, size_t buflen) */ 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); diff --git a/src/mod/xml_int/mod_xml_rpc/ws.c b/src/mod/xml_int/mod_xml_rpc/ws.c index 44a3860ae4..a5ad9c7a3b 100644 --- a/src/mod/xml_int/mod_xml_rpc/ws.c +++ b/src/mod/xml_int/mod_xml_rpc/ws.c @@ -119,7 +119,7 @@ static int cheezy_get_var(char *data, char *name, char *buf, size_t buflen) */ 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);