Changeset 6732:57148b755320 in nginx


Ignore:
Timestamp:
10/10/16 13:24:50 (3 years ago)
Author:
Maxim Dounin <mdounin@…>
Branch:
default
Phase:
public
Message:

Allowed '-' in method names.

It is used at least by SOAP (M-POST method, defined by RFC 2774) and
by WebDAV versioning (VERSION-CONTROL and BASELINE-CONTROL methods,
defined by RFC 3253).

Location:
src/http
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/http/ngx_http_parse.c

    r6626 r6732  
    150150            }
    151151
    152             if ((ch < 'A' || ch > 'Z') && ch != '_') {
     152            if ((ch < 'A' || ch > 'Z') && ch != '_' && ch != '-') {
    153153                return NGX_HTTP_PARSE_INVALID_METHOD;
    154154            }
     
    271271            }
    272272
    273             if ((ch < 'A' || ch > 'Z') && ch != '_') {
     273            if ((ch < 'A' || ch > 'Z') && ch != '_' && ch != '-') {
    274274                return NGX_HTTP_PARSE_INVALID_METHOD;
    275275            }
  • src/http/v2/ngx_http_v2.c

    r6642 r6732  
    31793179
    31803180    do {
    3181         if ((*p < 'A' || *p > 'Z') && *p != '_') {
     3181        if ((*p < 'A' || *p > 'Z') && *p != '_' && *p != '-') {
    31823182            ngx_log_error(NGX_LOG_INFO, r->connection->log, 0,
    31833183                          "client sent invalid method: \"%V\"",
Note: See TracChangeset for help on using the changeset viewer.