Skip to content

Commit ac35f5f

Browse files
committed
Fixing an invalid encoding component path being used in uri_builder::append_query.
1 parent 5a85cea commit ac35f5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Release/src/uri/uri_builder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ uri_builder &uri_builder::append_query(const utility::string_t &query, bool is_e
8080
return *this;
8181
}
8282

83-
auto encoded_query = is_encode ? uri::encode_uri(query, uri::components::path) : query;
83+
auto encoded_query = is_encode ? uri::encode_uri(query, uri::components::query) : query;
8484
auto thisQuery = this->query();
8585
if (thisQuery.empty())
8686
{

0 commit comments

Comments
 (0)