diff options
author | 2022-09-03 18:48:54 -0700 | |
---|---|---|
committer | 2022-09-03 18:49:19 -0700 | |
commit | 8e5b1c44bc165eff9546945d898f997bfbde9db4 (patch) | |
tree | 5c834d114b555d16491814495c38e8d384497a8e /src/bun.js | |
parent | 2340e7e6e5eadf1fe920db4c276716d661a704b4 (diff) | |
download | bun-8e5b1c44bc165eff9546945d898f997bfbde9db4.tar.gz bun-8e5b1c44bc165eff9546945d898f997bfbde9db4.tar.zst bun-8e5b1c44bc165eff9546945d898f997bfbde9db4.zip |
Fixes https://github.com/oven-sh/bun/issues/677
Diffstat (limited to 'src/bun.js')
-rw-r--r-- | src/bun.js/webcore/response.zig | 16 |
1 files changed, 9 insertions, 7 deletions
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); |