1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-11-03 04:17:17 -05:00

Update: Corrected namespace for new HTTPP related code

This commit is contained in:
Philipp Schafft 2018-11-14 09:44:45 +00:00
parent 7a67d0be94
commit 2eb25575e2
3 changed files with 3 additions and 5 deletions

View File

@ -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";

View File

@ -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

View File

@ -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) {