better telnet tester, merging
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user