Permalink
Browse files

Add Subversion's DeltaV methods to what nginx can parse

  • Loading branch information...
1 parent 6c912a9 commit 2e05240b8d043125379a68957c6d6c657c48bb0a @nickh committed Feb 10, 2012
Showing with 17 additions and 0 deletions.
  1. +14 −0 src/http/ngx_http_parse.c
  2. +3 −0 src/http/ngx_http_request.h
@@ -222,6 +222,10 @@ ngx_http_parse_request_line(ngx_http_request_t *r, ngx_buf_t *b)
r->method = NGX_HTTP_TRACE;
}
+ if (ngx_str5cmp(m, 'M', 'E', 'R', 'G', 'E')) {
+ r->method = NGX_HTTP_MERGE;
+ }
+
break;
case 6:
@@ -235,6 +239,11 @@ ngx_http_parse_request_line(ngx_http_request_t *r, ngx_buf_t *b)
break;
}
+ if (ngx_str6cmp(m, 'R', 'E', 'P', 'O', 'R', 'T')) {
+ r->method = NGX_HTTP_REPORT;
+ break;
+ }
+
break;
case 7:
@@ -251,6 +260,11 @@ ngx_http_parse_request_line(ngx_http_request_t *r, ngx_buf_t *b)
r->method = NGX_HTTP_PROPFIND;
}
+ if (ngx_str8cmp(m, 'C', 'H', 'E', 'C', 'K', 'O', 'U', 'T'))
+ {
+ r->method = NGX_HTTP_CHECKOUT;
+ }
+
break;
case 9:
@@ -40,6 +40,9 @@
#define NGX_HTTP_UNLOCK 0x2000
#define NGX_HTTP_PATCH 0x4000
#define NGX_HTTP_TRACE 0x8000
+#define NGX_HTTP_CHECKOUT 0x00010000
+#define NGX_HTTP_REPORT 0x00020000
+#define NGX_HTTP_MERGE 0x00040000
#define NGX_HTTP_CONNECTION_CLOSE 1
#define NGX_HTTP_CONNECTION_KEEP_ALIVE 2

0 comments on commit 2e05240

Please sign in to comment.