diff options
| author | 2021-10-15 20:08:40 -0700 | |
|---|---|---|
| committer | 2021-10-15 20:08:40 -0700 | |
| commit | cf2e81b03662c4b1a227d1bc9560a91826ef20e6 (patch) | |
| tree | 0dc03cb97af1eb0615b8bb491696247962a81b73 /src/javascript | |
| parent | 0baa3b511e28cfb124f712e12d8f93474e6ce6fa (diff) | |
| parent | bf2732599cc7e45f320f75b38672c1a1fc3d5583 (diff) | |
| download | bun-cf2e81b03662c4b1a227d1bc9560a91826ef20e6.tar.gz bun-cf2e81b03662c4b1a227d1bc9560a91826ef20e6.tar.zst bun-cf2e81b03662c4b1a227d1bc9560a91826ef20e6.zip | |
Merge branch 'jarred/gen'
Diffstat (limited to 'src/javascript')
| -rw-r--r-- | src/javascript/jsc/webcore/response.zig | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/javascript/jsc/webcore/response.zig b/src/javascript/jsc/webcore/response.zig index ff399990e..76be74d84 100644 --- a/src/javascript/jsc/webcore/response.zig +++ b/src/javascript/jsc/webcore/response.zig @@ -6,6 +6,8 @@ usingnamespace @import("../javascript.zig"); usingnamespace @import("../bindings/bindings.zig"); const ZigURL = @import("../../../query_string_map.zig").URL; const HTTPClient = @import("../../../http_client.zig"); +const Method = @import("../../../http/method.zig").Method; + const picohttp = @import("picohttp"); pub const Response = struct { pub const Class = NewClass( @@ -500,7 +502,7 @@ pub const Fetch = struct { defer js.JSStringRelease(string_ref); var method_name_buf: [16]u8 = undefined; var method_name = method_name_buf[0..js.JSStringGetUTF8CString(string_ref, &method_name_buf, method_name_buf.len)]; - http_client.method = http.Method.which(method_name) orelse http_client.method; + http_client.method = Method.which(method_name) orelse http_client.method; } } }, |
