mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2025-01-03 14:56:34 -05:00
Update: Corrected namespace for new HTTPP related code
This commit is contained in:
parent
7a67d0be94
commit
2eb25575e2
@ -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"
|
* CORS actually knows about non-CORS requests and assigned the "null"
|
||||||
* location to them.
|
* location to them.
|
||||||
*/
|
*/
|
||||||
origin = httpp_getvar(client->parser, "origin");
|
origin = igloo_httpp_getvar(client->parser, "origin");
|
||||||
if (!origin)
|
if (!origin)
|
||||||
origin = "null";
|
origin = "null";
|
||||||
|
|
||||||
|
@ -171,9 +171,7 @@ static inline void client_reuseconnection(client_t *client) {
|
|||||||
reuse = client->reuse;
|
reuse = client->reuse;
|
||||||
|
|
||||||
if (reuse == ICECAST_REUSE_UPGRADETLS) {
|
if (reuse == ICECAST_REUSE_UPGRADETLS) {
|
||||||
http_parser_t *parser = client->parser;
|
igloo_httpp_deletevar(client->parser, "upgrade");
|
||||||
|
|
||||||
httpp_deletevar(parser, "upgrade");
|
|
||||||
client->reuse = ICECAST_REUSE_CLOSE;
|
client->reuse = ICECAST_REUSE_CLOSE;
|
||||||
|
|
||||||
/* release the buffer now, as the buffer could be on the source queue
|
/* 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;
|
break;
|
||||||
case HTTP_HEADER_TYPE_CORS:
|
case HTTP_HEADER_TYPE_CORS:
|
||||||
if (name && client && client->parser) {
|
if (name && client && client->parser) {
|
||||||
const char *origin = httpp_getvar(client->parser, "origin");
|
const char *origin = igloo_httpp_getvar(client->parser, "origin");
|
||||||
if (origin) {
|
if (origin) {
|
||||||
value = header->value;
|
value = header->value;
|
||||||
if (!value) {
|
if (!value) {
|
||||||
|
Loading…
Reference in New Issue
Block a user