Klaus Demo nginx / e95ea5b
the PUTing to collection must return NGX_HTTP_BAD_REQUEST Igor Sysoev 15 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
129129 case NGX_HTTP_PUT:
130130
131131 if (r->uri.data[r->uri.len - 1] == '/') {
132 return NGX_DECLINED;
132 return NGX_HTTP_BAD_REQUEST;
133133 }
134134
135135 r->request_body_in_file_only = 1;