Permalink
Browse files

various coding style fixes.

  • Loading branch information...
agentzh committed May 16, 2016
1 parent 9e06177 commit 889640c09ddf3bb58ffb0426b74f36d64e8665a5
Showing with 8 additions and 8 deletions.
  1. +6 −6 src/ngx_http_form_input_module.c
  2. +2 −2 t/base.t
@@ -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;
}
@@ -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...");
@@ -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;
}
View
@@ -229,7 +229,7 @@ bar2
=== TEST 14 :GET request
=== TEST 14: GET request
--- config
location /bar {
set_form_input $bar bar;
@@ -245,7 +245,7 @@ bar=foo
=== TEST 15 :no content type
=== TEST 15: no content type
--- config
location /bar {
set_form_input $bar bar;

0 comments on commit 889640c

Please sign in to comment.