Skip to content

Commit 466d8d0

Browse files
committed
fixes
1 parent 2358ded commit 466d8d0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/httpfile/http_client.zig

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,16 +93,16 @@ pub const HttpClient = struct {
9393
defer self.allocator.free(url);
9494
switch (request.version) {
9595
.@"HTTP/1.0" => {
96-
easy.setHttpVersion(.http1_0);
96+
try easy.setHttpVersion(.http1_0);
9797
},
9898
.@"HTTP/1.1" => {
99-
easy.setHttpVersion(.http1_1);
99+
try easy.setHttpVersion(.http1_1);
100100
},
101101
.@"HTTP/2" => {
102-
easy.setHttpVersion(.http2);
102+
try easy.setHttpVersion(.http2);
103103
},
104104
.@"HTTP/3" => {
105-
easy.setHttpVersion(.http3);
105+
try easy.setHttpVersion(.http3);
106106
},
107107
}
108108
const resp = try easy.fetch(url, .{

0 commit comments

Comments
 (0)