We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88a1bcd commit 7144f66Copy full SHA for 7144f66
Release/include/cpprest/uri_builder.h
@@ -160,12 +160,13 @@ namespace web { namespace http
160
uri_builder & set_port(const utility::string_t &port)
161
{
162
utility::istringstream_t portStream(port);
163
- portStream >> m_uri.m_port;
+ int port_tmp;
164
+ portStream >> port_tmp;
165
if(portStream.fail() || portStream.bad())
166
167
throw std::invalid_argument("invalid port argument, must be non empty string containing integer value");
168
}
-
169
+ m_uri.m_port = port_tmp;
170
return *this;
171
172
0 commit comments