Skip to content

Commit 377f002

Browse files
committed
fix build break and unit tests break caused by payload coming from tfs
1 parent 00cae6c commit 377f002

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

Release/include/http_client.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ class http_client
269269
/// <param name="handler">A function object representing the pipeline stage.</param>
270270
void add_handler(std::function<pplx::task<http_response>(http_request, std::shared_ptr<http::http_pipeline_stage>)> handler)
271271
{
272-
m_pipeline->append(std::make_shared<::web::http::details::function_pipeline_wrapper>(handler));
272+
m_pipeline->append(std::make_shared< ::web::http::details::function_pipeline_wrapper>(handler));
273273
}
274274

275275
/// <summary>
@@ -399,7 +399,7 @@ class http_client
399399

400400
void build_pipeline(const uri &base_uri, const http_client_config& client_config);
401401

402-
std::shared_ptr<::web::http::http_pipeline> m_pipeline;
402+
std::shared_ptr< ::web::http::http_pipeline> m_pipeline;
403403

404404
uri _base_uri;
405405
};

Release/src/http/common/http_helpers.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ namespace details
7171
|| _wcsicmp(ct, content_type_application_xjavascript.c_str()) == 0
7272
)
7373
#else
74-
if( boost::iequals(content_type.substr(0,4), content_type_application_json))
74+
if( boost::iequals(content_type.substr(), content_type_application_json)
7575
|| boost::iequals(content_type, content_type_text_json)
7676
|| boost::iequals(content_type, content_type_text_xjson)
7777
|| boost::iequals(content_type, content_type_text_javascript)

Release/tests/Functional/http/utilities/testlistener/include/http_listener.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ class http_listener : public http_listener_interface
201201
/// <param name="handler">A function object representing the pipeline stage.</param>
202202
void add_handler(std::function<pplx::task<http_response>(http_request, std::shared_ptr<http::http_pipeline_stage>)> handler)
203203
{
204-
m_pipeline->append(std::make_shared<::web::http::details::function_pipeline_wrapper>(handler));
204+
m_pipeline->append(std::make_shared< ::web::http::details::function_pipeline_wrapper>(handler));
205205
}
206206

207207
/// <summary>
@@ -292,7 +292,7 @@ class http_listener : public http_listener_interface
292292
this->m_supported_methods = std::move(other.m_supported_methods);
293293
this->m_pipeline = std::move(other.m_pipeline);
294294

295-
std::shared_ptr<::web::http::http_pipeline_stage> lastStage = this->m_pipeline->last_stage();
295+
std::shared_ptr< ::web::http::http_pipeline_stage> lastStage = this->m_pipeline->last_stage();
296296
auto listenerStage = static_cast<_listener_stage *>(lastStage.get());
297297
listenerStage->reset_listener(this);
298298

@@ -340,4 +340,4 @@ class http_listener : public http_listener_interface
340340
} // namespace http
341341
} // namespace web
342342

343-
#endif /* _CASA_HTTP_LISTENER_H */
343+
#endif /* _CASA_HTTP_LISTENER_H */

Release/tests/Functional/http/utilities/testlistener/src/logging/log.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ using namespace utility;
3838
using namespace logging;
3939
using namespace pplx;
4040

41-
std::shared_ptr<::logging::_Log> s_default;
41+
std::shared_ptr< ::logging::_Log> s_default;
4242

4343
void log::post(log_level level, const utility::string_t &message)
4444
{
@@ -64,21 +64,21 @@ void log::set_default(_Inout_opt_ ::logging::_Log *log)
6464
{
6565
if ( log == nullptr )
6666
log = new logging::_details::SilentLog;
67-
s_default = std::shared_ptr<::logging::_Log>(log);
67+
s_default = std::shared_ptr< ::logging::_Log>(log);
6868
}
6969

70-
void log::set_default(std::shared_ptr<::logging::_Log> log)
70+
void log::set_default(std::shared_ptr< ::logging::_Log> log)
7171
{
7272
if ( !log )
7373
log = std::make_shared<logging::_details::SilentLog>();
7474
s_default = log;
7575
}
7676

77-
std::shared_ptr<::logging::_Log> log::get_default()
77+
std::shared_ptr< ::logging::_Log> log::get_default()
7878
{
7979
if ( !s_default )
8080
{
81-
s_default = std::shared_ptr<::logging::_Log>(new logging::_details::ConsoleLog(true, true));
81+
s_default = std::shared_ptr< ::logging::_Log>(new logging::_details::ConsoleLog(true, true));
8282
}
8383
return s_default;
8484
}

0 commit comments

Comments
 (0)