Browse Source

fix host var init

master
nicolas-arnaud 2 years ago
parent
commit
ac2b83d859
  1. 2
      srcs/sock/Client.cpp

2
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";

Loading…
Cancel
Save