From 8e5b1c44bc165eff9546945d898f997bfbde9db4 Mon Sep 17 00:00:00 2001 From: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Date: Sat, 3 Sep 2022 18:48:54 -0700 Subject: Fixes https://github.com/oven-sh/bun/issues/677 --- src/bun.js/webcore/response.zig | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/bun.js/webcore/response.zig b/src/bun.js/webcore/response.zig index fc79bf377..4e23c3d15 100644 --- a/src/bun.js/webcore/response.zig +++ b/src/bun.js/webcore/response.zig @@ -4169,13 +4169,15 @@ pub const Request = struct { globalThis: *JSC.JSGlobalObject, ) callconv(.C) JSC.JSValue { const string_contents: string = switch (this.method) { - .GET => Properties.UTF8.GET, - .HEAD => Properties.UTF8.HEAD, - .PATCH => Properties.UTF8.PATCH, - .PUT => Properties.UTF8.PUT, - .POST => Properties.UTF8.POST, - .OPTIONS => Properties.UTF8.OPTIONS, - else => "", + .GET => "GET", + .HEAD => "HEAD", + .PATCH => "PATCH", + .PUT => "PUT", + .POST => "POST", + .OPTIONS => "OPTIONS", + .CONNECT => "CONNECT", + .TRACE => "TRACE", + .DELETE => "DELETE", }; return ZigString.init(string_contents).toValueGC(globalThis); -- cgit v1.2.3