We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2358ded commit 466d8d0Copy full SHA for 466d8d0
1 file changed
src/httpfile/http_client.zig
@@ -93,16 +93,16 @@ pub const HttpClient = struct {
93
defer self.allocator.free(url);
94
switch (request.version) {
95
.@"HTTP/1.0" => {
96
- easy.setHttpVersion(.http1_0);
+ try easy.setHttpVersion(.http1_0);
97
},
98
.@"HTTP/1.1" => {
99
- easy.setHttpVersion(.http1_1);
+ try easy.setHttpVersion(.http1_1);
100
101
.@"HTTP/2" => {
102
- easy.setHttpVersion(.http2);
+ try easy.setHttpVersion(.http2);
103
104
.@"HTTP/3" => {
105
- easy.setHttpVersion(.http3);
+ try easy.setHttpVersion(.http3);
106
107
}
108
const resp = try easy.fetch(url, .{
0 commit comments