Skip to content

Commit

Permalink
minor coding style fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
agentzh committed Feb 7, 2012
1 parent e3123d3 commit 51a6bdf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/ngx_http_lua_headers_out.c
Expand Up @@ -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)
{
Expand Down
6 changes: 3 additions & 3 deletions t/016-resp-header.t
Expand Up @@ -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();
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 51a6bdf

Please sign in to comment.