| ... | ... | @@ -462,7 +462,6 @@ pub const Response = struct { |
| 462 | 462 | |
| 463 | 463 | const first_line = it.next().?; |
| 464 | 464 | if (first_line.len < 12) { |
| 465 | | std.debug.print("first line: '{s}'\n", .{first_line}); |
| 466 | 465 | return error.HttpHeadersInvalid; |
| 467 | 466 | } |
| 468 | 467 | |
| ... | ... | @@ -1573,6 +1572,7 @@ pub const FetchOptions = struct { |
| 1573 | 1572 | method: ?http.Method = null, |
| 1574 | 1573 | payload: ?[]const u8 = null, |
| 1575 | 1574 | raw_uri: bool = false, |
| 1575 | keep_alive: bool = true, |
| 1576 | 1576 | |
| 1577 | 1577 | /// Standard headers that have default, but overridable, behavior. |
| 1578 | 1578 | headers: Request.Headers = .{}, |
| ... | ... | @@ -1622,6 +1622,7 @@ pub fn fetch(client: *Client, options: FetchOptions) !FetchResult { |
| 1622 | 1622 | .headers = options.headers, |
| 1623 | 1623 | .extra_headers = options.extra_headers, |
| 1624 | 1624 | .privileged_headers = options.privileged_headers, |
| 1625 | .keep_alive = options.keep_alive, |
| 1625 | 1626 | }); |
| 1626 | 1627 | defer req.deinit(); |
| 1627 | 1628 | |