aboutsummaryrefslogtreecommitdiff
path: root/src/javascript/jsc
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <jarred@jarredsumner.com> 2021-10-13 00:27:35 -0700
committerGravatar Jarred Sumner <jarred@jarredsumner.com> 2021-10-13 00:27:35 -0700
commit88a5e2d34d25c3ac3d13a432bbd85daa075c4bcb (patch)
tree53e40562b7bbe006304daa341a5ce3dfbdeca81e /src/javascript/jsc
parentafc346d6f125a41fb6ff823d04d3ffd85ab36dcd (diff)
downloadbun-88a5e2d34d25c3ac3d13a432bbd85daa075c4bcb.tar.gz
bun-88a5e2d34d25c3ac3d13a432bbd85daa075c4bcb.tar.zst
bun-88a5e2d34d25c3ac3d13a432bbd85daa075c4bcb.zip
Add TLS 1.3 support, improve fetch() HTTPS performance
Diffstat (limited to 'src/javascript/jsc')
-rw-r--r--src/javascript/jsc/webcore/response.zig4
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;
}
}
},