diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2003-06-03 15:42:58 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2003-06-03 15:42:58 +0000 |
| commit | 1c10462e88491d52a23e22fbc3ca0012591df095 (patch) | |
| tree | 5a71cf54dda493188473693e5b66a08fc8cdf161 /src/http/modules | |
| parent | 7578ec9df43bbb31db5291f1b76359d10900a679 (diff) | |
| download | nginx-1c10462e88491d52a23e22fbc3ca0012591df095.tar.gz nginx-1c10462e88491d52a23e22fbc3ca0012591df095.tar.bz2 | |
nginx-0.0.1-2003-06-03-19:42:58 import
Diffstat (limited to 'src/http/modules')
| -rw-r--r-- | src/http/modules/ngx_http_log_handler.c | 14 | ||||
| -rw-r--r-- | src/http/modules/ngx_http_range_filter.c | 2 |
2 files changed, 15 insertions, 1 deletions
diff --git a/src/http/modules/ngx_http_log_handler.c b/src/http/modules/ngx_http_log_handler.c index f61461ce7..38aa2331d 100644 --- a/src/http/modules/ngx_http_log_handler.c +++ b/src/http/modules/ngx_http_log_handler.c @@ -198,5 +198,19 @@ static char *ngx_http_log_set_log(ngx_conf_t *cf, ngx_command_t *cmd, return ngx_conf_errstr; } +#if (WIN32) + if (ngx_file_append_mode(lcf->file.fd) == NGX_ERROR) { + err = ngx_errno; + len = ngx_snprintf(ngx_conf_errstr, sizeof(ngx_conf_errstr) - 1, + ngx_file_appned_mode_n " \"%s\" failed (%d: ", + lcf->file.name.data, err); + len += ngx_strerror_r(err, ngx_conf_errstr + len, + sizeof(ngx_conf_errstr) - len - 1); + ngx_conf_errstr[len++] = ')'; + ngx_conf_errstr[len++] = '\0'; + return ngx_conf_errstr; + } +#endif + return NGX_CONF_OK; } diff --git a/src/http/modules/ngx_http_range_filter.c b/src/http/modules/ngx_http_range_filter.c index d2696fd2d..d32123b12 100644 --- a/src/http/modules/ngx_http_range_filter.c +++ b/src/http/modules/ngx_http_range_filter.c @@ -252,7 +252,7 @@ static int ngx_http_range_header_filter(ngx_http_request_t *r) r->headers_out.content_length); len += ctx->boundary_header.len + range[i].content_range.len - + range[i].end - range[i].start; + + (size_t) (range[i].end - range[i].start); } r->headers_out.content_length = len; |
