diff --git a/main/http.c b/main/http.c index 565c41f8e0..3f69a025c6 100644 --- a/main/http.c +++ b/main/http.c @@ -666,7 +666,7 @@ struct ast_variable *ast_http_get_post_vars( prev = v; } } - + done: ast_free(buf); return post_vars; @@ -843,7 +843,7 @@ struct ast_variable *ast_http_get_cookies(struct ast_variable *headers) struct ast_variable *v, *cookies=NULL; for (v = headers; v; v = v->next) { - if (!strncasecmp(v->name, "Cookie", 6)) { + if (!strcasecmp(v->name, "Cookie")) { char *tmp = ast_strdupa(v->value); if (cookies) { ast_variables_destroy(cookies);