File tree Expand file tree Collapse file tree 4 files changed +11
-11
lines changed
tests/Functional/http/utilities/testlistener Expand file tree Collapse file tree 4 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -269,7 +269,7 @@ class http_client
269
269
// / <param name="handler">A function object representing the pipeline stage.</param>
270
270
void add_handler (std::function<pplx::task<http_response>(http_request, std::shared_ptr<http::http_pipeline_stage>)> handler)
271
271
{
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));
273
273
}
274
274
275
275
// / <summary>
@@ -399,7 +399,7 @@ class http_client
399
399
400
400
void build_pipeline (const uri &base_uri, const http_client_config& client_config);
401
401
402
- std::shared_ptr<::web::http::http_pipeline> m_pipeline;
402
+ std::shared_ptr< ::web::http::http_pipeline> m_pipeline;
403
403
404
404
uri _base_uri;
405
405
};
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ namespace details
71
71
|| _wcsicmp (ct, content_type_application_xjavascript.c_str ()) == 0
72
72
)
73
73
#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)
75
75
|| boost::iequals (content_type, content_type_text_json)
76
76
|| boost::iequals (content_type, content_type_text_xjson)
77
77
|| boost::iequals (content_type, content_type_text_javascript)
Original file line number Diff line number Diff line change @@ -201,7 +201,7 @@ class http_listener : public http_listener_interface
201
201
// / <param name="handler">A function object representing the pipeline stage.</param>
202
202
void add_handler (std::function<pplx::task<http_response>(http_request, std::shared_ptr<http::http_pipeline_stage>)> handler)
203
203
{
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));
205
205
}
206
206
207
207
// / <summary>
@@ -292,7 +292,7 @@ class http_listener : public http_listener_interface
292
292
this ->m_supported_methods = std::move (other.m_supported_methods );
293
293
this ->m_pipeline = std::move (other.m_pipeline );
294
294
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 ();
296
296
auto listenerStage = static_cast <_listener_stage *>(lastStage.get ());
297
297
listenerStage->reset_listener (this );
298
298
@@ -340,4 +340,4 @@ class http_listener : public http_listener_interface
340
340
} // namespace http
341
341
} // namespace web
342
342
343
- #endif /* _CASA_HTTP_LISTENER_H */
343
+ #endif /* _CASA_HTTP_LISTENER_H */
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ using namespace utility;
38
38
using namespace logging ;
39
39
using namespace pplx ;
40
40
41
- std::shared_ptr<::logging::_Log> s_default;
41
+ std::shared_ptr< ::logging::_Log> s_default;
42
42
43
43
void log::post (log_level level, const utility::string_t &message)
44
44
{
@@ -64,21 +64,21 @@ void log::set_default(_Inout_opt_ ::logging::_Log *log)
64
64
{
65
65
if ( log == nullptr )
66
66
log = new logging::_details::SilentLog;
67
- s_default = std::shared_ptr<::logging::_Log>(log);
67
+ s_default = std::shared_ptr< ::logging::_Log>(log);
68
68
}
69
69
70
- void log::set_default (std::shared_ptr<::logging::_Log> log)
70
+ void log::set_default (std::shared_ptr< ::logging::_Log> log)
71
71
{
72
72
if ( !log )
73
73
log = std::make_shared<logging::_details::SilentLog>();
74
74
s_default = log;
75
75
}
76
76
77
- std::shared_ptr<::logging::_Log> log::get_default ()
77
+ std::shared_ptr< ::logging::_Log> log::get_default ()
78
78
{
79
79
if ( !s_default )
80
80
{
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 ));
82
82
}
83
83
return s_default;
84
84
}
You can’t perform that action at this time.
0 commit comments