From 6c5497ae49f3b68d9ea3f3e636f9b94140cd9bb2 Mon Sep 17 00:00:00 2001 From: King_DuckZ Date: Sun, 23 Apr 2017 13:08:27 +0100 Subject: [PATCH] Redirect to base_uri, not to localhost --- src/submit_paste_response.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/submit_paste_response.cpp b/src/submit_paste_response.cpp index 7bd9b4d..c331443 100644 --- a/src/submit_paste_response.cpp +++ b/src/submit_paste_response.cpp @@ -43,7 +43,7 @@ namespace tawashi { boost::optional 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()); } }