Skip to content
This repository
Browse code

Moving PATCH method detection down as method is less common

  • Loading branch information...
commit 01dc7c8fe42d94ccba0e08541900a5f881f099ac 1 parent e6d7fa9
David Beitey authored

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  cherokee/header.c
4  cherokee/header.c
@@ -315,14 +315,14 @@ parse_method (cherokee_header_t *hdr, char *line, char *end, char **pointer)
315 315
 		detect_method (line, "GET", get)
316 316
 		break;
317 317
 	case 'P':
318  
-		detect_method (line, "PATCH", patch)
319  
-		else
320 318
 		detect_method (line, "POST", post)
321 319
 		else
322 320
 		detect_method (line, "PUT", put)
323 321
 		else
324 322
 		detect_method (line, "PURGE", purge)
325 323
 		else
  324
+		detect_method (line, "PATCH", patch)
  325
+		else
326 326
 		detect_method (line, "POLL", poll)
327 327
 		else
328 328
 		detect_method (line, "PROPFIND", propfind)

0 notes on commit 01dc7c8

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