Skip to content

Commit 26c681b

Browse files
committed
Revert "Merge pull request #1 from CovenantEyes/ce-custom"
This reverts commit ac45ccd, reversing changes made to d51d6e4.
1 parent ac45ccd commit 26c681b

File tree

3 files changed

+1
-5
lines changed

3 files changed

+1
-5
lines changed

boost/network/protocol/http/impl/request.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,6 @@ namespace http {
157157
typedef vector_type headers_container_type;
158158
typedef boost::uint16_t port_type;
159159
mutable string_type source;
160-
mutable port_type source_port;
161160
mutable string_type method;
162161
mutable string_type destination;
163162
mutable boost::uint8_t http_version_major;
@@ -169,7 +168,6 @@ namespace http {
169168
using std::swap;
170169
swap(method, r.method);
171170
swap(source, r.source);
172-
swap(source_port, r.source_port);
173171
swap(destination, r.destination);
174172
swap(http_version_major, r.http_version_major);
175173
swap(http_version_minor, r.http_version_minor);

boost/network/protocol/http/server/sync_connection.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ namespace boost { namespace network { namespace http {
7979
void handle_read_headers(boost::system::error_code const &ec, size_t bytes_transferred) {
8080
if (!ec) {
8181
request_.source = socket_.remote_endpoint().address().to_string();
82-
request_.source_port = socket_.remote_endpoint().port();
8382
boost::tribool done;
8483
buffer_type::iterator new_start;
8584
tie(done,new_start) = parser_.parse_headers(request_, buffer_.data(), buffer_.data() + bytes_transferred);

libs/network/example/http/hello_world_server.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,8 @@ struct hello_world {
2929
void operator() (server::request const &request,
3030
server::response &response) {
3131
server::string_type ip = source(request);
32-
unsigned int port = request.source_port;
3332
std::ostringstream data;
34-
data << "Hello, " << ip << ':' << port << '!';
33+
data << "Hello, " << ip << "!";
3534
response = server::response::stock_reply(
3635
server::response::ok, data.str());
3736
}

0 commit comments

Comments
 (0)