diff options
Diffstat (limited to 'ot_http.c')
| -rw-r--r-- | ot_http.c | 4 |
1 files changed, 4 insertions, 0 deletions
| @@ -219,11 +219,15 @@ static const ot_keywords keywords_format[] = | |||
| 219 | tai6464 t; | 219 | tai6464 t; |
| 220 | #ifdef WANT_COMPRESSION_GZIP | 220 | #ifdef WANT_COMPRESSION_GZIP |
| 221 | ws->request[ws->request_size] = 0; | 221 | ws->request[ws->request_size] = 0; |
| 222 | #ifdef WANT_COMPRESSION_GZIP_ALWAYS | ||
| 222 | if( strstr( read_ptr - 1, "gzip" ) ) { | 223 | if( strstr( read_ptr - 1, "gzip" ) ) { |
| 224 | #endif | ||
| 223 | cookie->flag |= STRUCT_HTTP_FLAG_GZIP; | 225 | cookie->flag |= STRUCT_HTTP_FLAG_GZIP; |
| 224 | format |= TASK_FLAG_GZIP; | 226 | format |= TASK_FLAG_GZIP; |
| 227 | #ifdef WANT_COMPRESSION_GZIP_ALWAYS | ||
| 225 | } | 228 | } |
| 226 | #endif | 229 | #endif |
| 230 | #endif | ||
| 227 | /* Pass this task to the worker thread */ | 231 | /* Pass this task to the worker thread */ |
| 228 | cookie->flag |= STRUCT_HTTP_FLAG_WAITINGFORTASK; | 232 | cookie->flag |= STRUCT_HTTP_FLAG_WAITINGFORTASK; |
| 229 | 233 | ||
