Skip to content

Commit

Permalink
allow httpout.hdrs to be used in push mode
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanlf committed Dec 20, 2023
1 parent b026f6d commit 460a10e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/filters/out_http.c
Expand Up @@ -2353,6 +2353,12 @@ static void httpout_in_io_ex(void *usr_cbk, GF_NETIO_Parameter *parameter, Bool
default:
parameter->name = NULL;
parameter->value = NULL;
if (2 * ( *cur_header - HTTP_PUT_HEADER_DONE) < in->ctx->hdrs.nb_items) {
u32 h_idx = 2*( *cur_header - HTTP_PUT_HEADER_DONE);
parameter->name = in->ctx->hdrs.vals[h_idx];
parameter->value = in->ctx->hdrs.vals[h_idx+1];
*cur_header = *cur_header+1;
}
break;
}
}
Expand Down

0 comments on commit 460a10e

Please sign in to comment.