fixed mistake in _read_request()

+ changes to some log output
This commit is contained in:
LuckyLaszlo
2022-08-13 19:17:32 +02:00
parent 058701f657
commit b0949615c8
6 changed files with 35 additions and 36 deletions

View File

@@ -310,7 +310,7 @@ void ConfigParser::_set_location_values(LocationConfig *location, \
&& tmp_val[0] != "303" && tmp_val[0] != "307"
&& tmp_val[0] != "308")
throw std::invalid_argument("bad redirect status");
std::cout << tmp_val[1] << '\n';
// std::cout << tmp_val[1] << '\n';
if (tmp_val[1].compare(0, 7, "http://")
&& tmp_val[1].compare(0, 8, "https://"))
throw std::invalid_argument("bad redirect uri");