Skip to content
Browse files

Content type defaults to text/plain according rfc 2388

  • Loading branch information...
1 parent 9a613f7 commit 59727a0fdc567be117618d0782e7097700942617 @vkholodkov committed Nov 15, 2008
Showing with 5 additions and 2 deletions.
  1. +5 −2 ngx_http_upload_module.c
View
7 ngx_http_upload_module.c
@@ -2304,8 +2304,11 @@ ngx_upload_resolve_content_type(ngx_http_upload_ctx_t *u, ngx_str_t *exten, ngx_
}
}
- content_type->len = sizeof("application/octet-stream") - 1;
- content_type->data = (u_char*)"application/octet-stream";
+ /*
+ * Content type defaults to text/plain according to rfc 2388
+ */
+ content_type->len = sizeof("text/plain") - 1;
+ content_type->data = (u_char*)"text/plain";
return NGX_OK;
} /* }}} */

0 comments on commit 59727a0

Please sign in to comment.
Something went wrong with that request. Please try again.