[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 02/02: http: Support CONNECT and PATCH HTTP methods.
From: |
Ludovic Courtès |
Subject: |
[Guile-commits] 02/02: http: Support CONNECT and PATCH HTTP methods. |
Date: |
Mon, 18 May 2020 05:04:25 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guile.
commit ac5df66f1cafd3f9dd1bcac30b807ae7f13474c2
Author: Christopher Baines <address@hidden>
AuthorDate: Fri Apr 10 18:09:43 2020 +0100
http: Support CONNECT and PATCH HTTP methods.
PATCH is described by RFC 5789 and CONNECT is described by RFC 7231.
* module/web/http.scm (parse-http-method): Support CONNECT and PATCH.
Signed-off-by: Ludovic Courtès <address@hidden>
---
module/web/http.scm | 2 ++
1 file changed, 2 insertions(+)
diff --git a/module/web/http.scm b/module/web/http.scm
index de61c94..4276e17 100644
--- a/module/web/http.scm
+++ b/module/web/http.scm
@@ -1108,6 +1108,8 @@ symbol, like ‘GET’."
((string= str "DELETE" start end) 'DELETE)
((string= str "OPTIONS" start end) 'OPTIONS)
((string= str "TRACE" start end) 'TRACE)
+ ((string= str "CONNECT" start end) 'CONNECT)
+ ((string= str "PATCH" start end) 'PATCH)
(else (bad-request "Invalid method: ~a" (substring str start end)))))
(define* (parse-request-uri str #:optional (start 0) (end (string-length str)))