comparison src/http/modules/perl/nginx.xs @ 616:8214eaef3530 NGINX_0_9_6

nginx 0.9.6 *) Feature: the "map" directive supports regular expressions as value of the first parameter. *) Feature: $time_iso8601 access_log variable. Thanks to Michael Lustfield.
author Igor Sysoev <http://sysoev.ru>
date Mon, 21 Mar 2011 00:00:00 +0300
parents 566e105a89f1
children 6f21ae02fb01
comparison
equal deleted inserted replaced
615:02221dcea723 616:8214eaef3530
465 if (ngx_http_perl_sv2str(aTHX_ r, &header->value, value) != NGX_OK) { 465 if (ngx_http_perl_sv2str(aTHX_ r, &header->value, value) != NGX_OK) {
466 XSRETURN_EMPTY; 466 XSRETURN_EMPTY;
467 } 467 }
468 468
469 if (header->key.len == sizeof("Content-Length") - 1 469 if (header->key.len == sizeof("Content-Length") - 1
470 && ngx_strncasecmp(header->key.data, "Content-Length", 470 && ngx_strncasecmp(header->key.data, (u_char *) "Content-Length",
471 sizeof("Content-Length") - 1) == 0) 471 sizeof("Content-Length") - 1) == 0)
472 { 472 {
473 r->headers_out.content_length_n = (off_t) SvIV(value); 473 r->headers_out.content_length_n = (off_t) SvIV(value);
474 r->headers_out.content_length = header; 474 r->headers_out.content_length = header;
475 } 475 }
640 path.data = ngx_pnalloc(r->pool, path.len + 1); 640 path.data = ngx_pnalloc(r->pool, path.len + 1);
641 if (path.data == NULL) { 641 if (path.data == NULL) {
642 XSRETURN_EMPTY; 642 XSRETURN_EMPTY;
643 } 643 }
644 644
645 (void) ngx_cpystrn(path.data, filename, path.len + 1); 645 (void) ngx_cpystrn(path.data, (u_char *) filename, path.len + 1);
646 646
647 clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module); 647 clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module);
648 648
649 ngx_memzero(&of, sizeof(ngx_open_file_info_t)); 649 ngx_memzero(&of, sizeof(ngx_open_file_info_t));
650 650