| ... | @@ -478,10 +478,6 @@ pub const Response = struct { | ... | @@ -478,10 +478,6 @@ pub const Response = struct { |
| 478 | if (res.status == .@"continue") { | 478 | if (res.status == .@"continue") { |
| 479 | res.state = .waited; // we still need to send another request after this | 479 | res.state = .waited; // we still need to send another request after this |
| 480 | } else { | 480 | } else { |
| 481 | if (!res.headers.contains("server")) { | | |
| 482 | try w.writeAll("Server: zig (std.http)\r\n"); | | |
| 483 | } | | |
| 484 | | | |
| 485 | if (!res.headers.contains("connection")) { | 481 | if (!res.headers.contains("connection")) { |
| 486 | const req_connection = res.request.headers.getFirstValue("connection"); | 482 | const req_connection = res.request.headers.getFirstValue("connection"); |
| 487 | const req_keepalive = req_connection != null and !std.ascii.eqlIgnoreCase("close", req_connection.?); | 483 | const req_keepalive = req_connection != null and !std.ascii.eqlIgnoreCase("close", req_connection.?); |