Skip to content

Commit

Permalink
Flush file header under SSL. Fixes #44
Browse files Browse the repository at this point in the history
  • Loading branch information
evanmiller committed Jan 27, 2016
1 parent 01ce916 commit f8a0c5c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ngx_http_zip_file.c
Expand Up @@ -429,6 +429,9 @@ ngx_http_zip_file_header_chain_link(ngx_http_request_t *r, ngx_http_zip_ctx_t *c

b->memory = 1;
b->last = b->pos + len;
#if (NGX_HTTP_SSL)
b->flush = r->connection->ssl;
#endif

/* A note about the ZIP format: in order to appease all ZIP software I
* could find, the local file header contains the file sizes but not the
Expand Down

2 comments on commit f8a0c5c

@avodaniel
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Direct conversion of pointer to bool, probably better something like:
b->flush = !!r->connection->ssl;

@evanmiller
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, will fix

Please sign in to comment.