Skip to content

Commit

Permalink
various coding style fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
agentzh committed May 16, 2016
1 parent 9e06177 commit 889640c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions src/ngx_http_form_input_module.c
Expand Up @@ -216,9 +216,9 @@ ngx_http_form_input_arg(ngx_http_request_t *r, u_char *arg_name, size_t arg_len,

if (b->in_file) {
ngx_log_error(NGX_LOG_ERR, r->connection->log, 0,
"form-input: in-file buffer found. aborted. "
"consider increasing your client_body_buffer_size "
"setting");
"form-input: in-file buffer found. aborted. "
"consider increasing your "
"client_body_buffer_size setting");

return NGX_OK;
}
Expand Down Expand Up @@ -277,7 +277,8 @@ ngx_http_form_input_arg(ngx_http_request_t *r, u_char *arg_name, size_t arg_len,
dd("v = %d...", (int) (v - buf));

dd("buf now (len %d): %.*s",
(int) (last - v), (int) (last - v), v);
(int) (last - v), (int) (last - v), v);

p = ngx_strlchr(v, last, '&');
if (p == NULL) {
dd("& not found, pointing it to last...");
Expand Down Expand Up @@ -457,8 +458,7 @@ ngx_http_form_input_handler(ngx_http_request_t *r)
if (r->headers_in.content_type == NULL
|| r->headers_in.content_type->value.data == NULL)
{
dd("content_type is %s", r->headers_in.content_type == NULL?"NULL":
"NOT NULL");
dd("content_type is %p", r->headers_in.content_type);

return NGX_DECLINED;
}
Expand Down
4 changes: 2 additions & 2 deletions t/base.t
Expand Up @@ -229,7 +229,7 @@ bar2
=== TEST 14 :GET request
=== TEST 14: GET request
--- config
location /bar {
set_form_input $bar bar;
Expand All @@ -245,7 +245,7 @@ bar=foo
=== TEST 15 :no content type
=== TEST 15: no content type
--- config
location /bar {
set_form_input $bar bar;
Expand Down

0 comments on commit 889640c

Please sign in to comment.