Commit 2eb25575 authored by Philipp Schafft's avatar Philipp Schafft 🦁

Update: Corrected namespace for new HTTPP related code

parent 7a67d0be
......@@ -471,7 +471,7 @@ static void auth_add_client(auth_t *auth, client_t *client, void (*on_no_match)(
* CORS actually knows about non-CORS requests and assigned the "null"
* location to them.
*/
origin = httpp_getvar(client->parser, "origin");
origin = igloo_httpp_getvar(client->parser, "origin");
if (!origin)
origin = "null";
......
......@@ -171,9 +171,7 @@ static inline void client_reuseconnection(client_t *client) {
reuse = client->reuse;
if (reuse == ICECAST_REUSE_UPGRADETLS) {
http_parser_t *parser = client->parser;
httpp_deletevar(parser, "upgrade");
igloo_httpp_deletevar(client->parser, "upgrade");
client->reuse = ICECAST_REUSE_CLOSE;
/* release the buffer now, as the buffer could be on the source queue
......
......@@ -625,7 +625,7 @@ static inline void _build_headers_loop(char **ret, size_t *len, const ice_conf
break;
case HTTP_HEADER_TYPE_CORS:
if (name && client && client->parser) {
const char *origin = httpp_getvar(client->parser, "origin");
const char *origin = igloo_httpp_getvar(client->parser, "origin");
if (origin) {
value = header->value;
if (!value) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment