Permalink
Browse files

minor coding style fixes.

  • Loading branch information...
agentzh committed Feb 7, 2012
1 parent e3123d3 commit 51a6bdfad097c3dd7bd150ebc6fbcd92837c52bd
Showing with 4 additions and 3 deletions.
  1. +1 −0 src/ngx_http_lua_headers_out.c
  2. +3 −3 t/016-resp-header.t
@@ -329,6 +329,7 @@ ngx_http_set_content_type_header(ngx_http_request_t *r,
return ngx_http_set_header_helper(r, hv, value, NULL, 1);
}
+
static ngx_int_t ngx_http_set_last_modified_header(ngx_http_request_t *r,
ngx_http_lua_header_val_t *hv, ngx_str_t *value)
{
View
@@ -9,7 +9,7 @@ use Test::Nginx::Socket;
repeat_each(2);
-plan tests => blocks() * repeat_each() * 3;
+plan tests => repeat_each() * (blocks() * 3 - 1);
#no_diff();
no_long_string();
@@ -729,7 +729,7 @@ Cache-Control: blah
location /lua {
content_by_lua '
ngx.header["Last-Modified"] = ngx.http_time(1290079655)
- ngx.say(ngx.header["Last-Modified"])
+ ngx.say(ngx.header["Last-Modified"])
';
}
--- request
@@ -747,7 +747,7 @@ Last-Modified: Thu, 18 Nov 2010 11:27:35 GMT
location /lua {
content_by_lua '
ngx.header["Last-Modified"] = ngx.http_time(1290079655)
- ngx.say(ngx.header["Last-Modified"])
+ ngx.say(ngx.header["Last-Modified"])
';
}
--- request

0 comments on commit 51a6bdf

Please sign in to comment.