From ac2b83d859a0a4cab38983810808bfbc0af4b649 Mon Sep 17 00:00:00 2001 From: nicolas-arnaud Date: Fri, 11 Nov 2022 14:57:05 +0100 Subject: [PATCH] fix host var init --- srcs/sock/Client.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srcs/sock/Client.cpp b/srcs/sock/Client.cpp index 3ac6f59..581b739 100644 --- a/srcs/sock/Client.cpp +++ b/srcs/sock/Client.cpp @@ -90,7 +90,7 @@ string Client::header_pick(string key, int id) { void Client::answer(Env *env) { string method = header_pick("Method:", 0); string uri = header_pick("Method:", 1); - string host = header_pick("Method:", 0); + string host = header_pick("Host:", 0); cout << "Method: " << method << "\n"; cout << "URI: " << uri << "\n"; cout << "Host: " << host << "\n";