diff options
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; } } }, |