1
0
Fork 0
mirror of https://github.com/KingDuckZ/kamokan.git synced 2024-12-27 21:35:41 +00:00

Redirect to base_uri, not to localhost

This commit is contained in:
King_DuckZ 2017-04-23 13:08:27 +01:00
parent 26aa51c3be
commit 6c5497ae49

View file

@ -43,7 +43,7 @@ namespace tawashi {
boost::optional<std::string> token = submit_to_redis(post_data_it->second);
if (token) {
std::ostringstream oss;
oss << "http://127.0.0.1:8080/" << *token;
oss << base_uri() << '/' << *token;
this->change_type(Response::Location, oss.str());
}
}