Skip to content

Commit 384a457

Browse files
OgnjenOgnjen
authored andcommitted
Merge branch 'development' of https://git01.codeplex.com/casablanca into development
2 parents 2b6e122 + 7ffd528 commit 384a457

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

Release/src/http/client/http_linux.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ namespace web { namespace http
5757
public:
5858
static std::shared_ptr<request_context> create_request_context(std::shared_ptr<_http_client_communicator> &client, http_request &request)
5959
{
60-
return std::make_shared<linux_request_context>(client, request, creation_type_tag{});
60+
return std::make_shared<linux_request_context>(client, request);
6161
}
6262

6363
void report_error(const utility::string_t &message, boost::system::error_code ec, httpclient_errorcode_context context = httpclient_errorcode_context::none)
@@ -162,11 +162,8 @@ namespace web { namespace http
162162
}
163163
}
164164

165-
private:
166-
// Allow make_shared to create linux_request_context internally, but not to anyone else outside the class
167-
class creation_type_tag {};
168165
public:
169-
linux_request_context(std::shared_ptr<_http_client_communicator> &client, http_request request, creation_type_tag)
166+
linux_request_context(std::shared_ptr<_http_client_communicator> &client, http_request request)
170167
: request_context(client, request)
171168
, m_known_size(0)
172169
, m_needChunked(false)

Release/src/json/json_serialization.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,11 +131,11 @@ void web::json::details::_String::format(std::basic_string<char>& str) const
131131
{
132132
if(m_has_escape_char)
133133
{
134-
str.append(*m_string);
134+
str.append(escape_string(*m_string));
135135
}
136136
else
137137
{
138-
str.append(escape_string(*m_string));
138+
str.append(*m_string);
139139
}
140140
}
141141

0 commit comments

Comments
 (0)