Skip to content

Commit 45734df

Browse files
committed
Fixing missing support for getting the raw string from URIs.
1 parent 982fd4c commit 45734df

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

boost/network/protocol/http/message/wrappers/uri.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ namespace boost { namespace network { namespace http {
2323
: message_(message) {}
2424
typedef typename basic_request<Tag>::string_type string_type;
2525
operator string_type() {
26-
return message_.uri();
26+
return message_.uri().raw();
2727
}
2828
};
2929
}

boost/network/uri/basic_uri.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@ namespace boost { namespace network { namespace uri {
7878
return parts_.fragment ? *parts_.fragment : string_type();
7979
}
8080

81+
string_type raw() const {
82+
return raw_;
83+
}
84+
8185
bool valid() const {
8286
return valid_;
8387
}

0 commit comments

Comments
 (0)