Commit 63242edc authored by Wandenberg Peixoto's avatar Wandenberg Peixoto

adding function ngx_http_push_stream_unescape_uri

parent 74ee07ea
......@@ -240,6 +240,7 @@ static ngx_int_t ngx_http_push_stream_memory_cleanup();
static ngx_int_t ngx_http_push_stream_buffer_cleanup();
ngx_chain_t * ngx_http_push_stream_get_buf(ngx_http_request_t *r);
static void ngx_http_push_stream_unescape_uri(ngx_str_t *value);
static void ngx_http_push_stream_complex_value(ngx_http_request_t *r, ngx_http_complex_value_t *val, ngx_str_t *value);
......
......@@ -1706,10 +1706,17 @@ ngx_http_push_stream_parse_paddings(ngx_conf_t *cf, ngx_str_t *paddings_by_user
static void
ngx_http_push_stream_complex_value(ngx_http_request_t *r, ngx_http_complex_value_t *val, ngx_str_t *value)
{
ngx_http_complex_value(r, val, value);
ngx_http_push_stream_unescape_uri(value);
}
static void
ngx_http_push_stream_unescape_uri(ngx_str_t *value)
{
u_char *dst, *src;
ngx_http_complex_value(r, val, value);
if (value->len) {
dst = value->data;
src = value->data;
......
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