From 4c05477dc15773a3f023828ca09fd8f69e29d523 Mon Sep 17 00:00:00 2001 From: Giovanni Vella Date: Thu, 19 Sep 2024 00:39:27 +0200 Subject: [PATCH] add Patch http verb (#632) fix #612 Signed-off-by: Giovanni Vella (johnvan7) --- src/utils/HttpVerb.util.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/utils/HttpVerb.util.ts b/src/utils/HttpVerb.util.ts index 9f0d0e5d..57472f96 100644 --- a/src/utils/HttpVerb.util.ts +++ b/src/utils/HttpVerb.util.ts @@ -23,6 +23,8 @@ export function convertHttpVerbNumberToString(verbNumber: HTTPExtension.Verb): s return "DELETE"; case HTTPExtension.Verb.PUT: return "PUT"; + case HTTPExtension.Verb.PATCH: + return "PATCH"; case HTTPExtension.Verb.TRACE: return "TRACE"; case HTTPExtension.Verb.CONNECT: @@ -48,6 +50,8 @@ export function convertHttpVerbStringToNumber(verbStr: string): HTTPExtension.Ve return HTTPExtension.Verb.DELETE; case "PUT": return HTTPExtension.Verb.PUT; + case "PATCH": + return HTTPExtension.Verb.PATCH; case "TRACE": return HTTPExtension.Verb.TRACE; case "CONNECT":