Skip to content

Commit 79fb219

Browse files
committed
Updating Boost.Asio based http_listener to just retrieve the pure request URI on incoming requests instead of forcing to absolute.
1 parent c7170ea commit 79fb219

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

Release/src/http/listener/http_server_asio.cpp

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -291,17 +291,10 @@ void connection::handle_http_line(const boost::system::error_code& ec)
291291
return;
292292
}
293293

294-
// Get the host part of the address.
295-
uri_builder builder;
296-
builder.set_scheme("http");
297-
builder.set_host(m_p_parent->m_host, true);
298-
builder.set_port(m_p_parent->m_port);
299-
300294
// Get the path - remove the version portion and prefix space
301-
builder.append_path(http_path_and_version.substr(1, http_path_and_version.size() - VersionPortionSize - 1));
302295
try
303296
{
304-
m_request.set_request_uri(builder.to_uri());
297+
m_request.set_request_uri(http_path_and_version.substr(1, http_path_and_version.size() - VersionPortionSize - 1));
305298
}
306299
catch(const uri_exception &e)
307300
{

0 commit comments

Comments
 (0)