Brice Figureau пре 17 година
родитељ
комит
40a871c514
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2
    2
      ngx_http_uploadprogress_module.c

+ 2
- 2
ngx_http_uploadprogress_module.c Прегледај датотеку

@@ -153,7 +153,7 @@ get_tracking_id(ngx_http_request_t * r)
153 153
         if (header[i].key.len == x_progress_id.len
154 154
             && ngx_strncasecmp(header[i].key.data, x_progress_id.data,
155 155
                            header[i].key.len) == 0) {
156
-            ret = ngx_calloc(r->pool, sizeof(ngx_str_t));
156
+            ret = ngx_calloc(sizeof(ngx_str_t), r->connection->log );
157 157
             ret->data = header[i].value.data;
158 158
             ret->len = header[i].value.len;
159 159
             ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, 
@@ -192,7 +192,7 @@ get_tracking_id(ngx_http_request_t * r)
192 192
                 }
193 193
             }
194 194
 
195
-            ret = ngx_calloc(r->pool, sizeof(ngx_str_t));
195
+            ret = ngx_calloc(sizeof(ngx_str_t), r->connection->log);
196 196
             ret->data = start_p;
197 197
             ret->len = p - start_p;
198 198
             ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, 

Loading…
Откажи
Сачувај