@@ -64,7 +64,7 @@ Result HttpLibHttpClient::get(const std::string& uriStr,
64
64
auto uri = URIComponents::fromStrRfc3986 (uriStr);
65
65
return makeResult (
66
66
makeClientAndApplyQuery (uri, config, timeoutSecs_, sslCertStrict_)
67
- ->Get (uri.buildPath (). c_str () ));
67
+ ->Get (uri.buildPath ()));
68
68
}
69
69
70
70
Result HttpLibHttpClient::post (const std::string& uriStr,
@@ -75,9 +75,9 @@ Result HttpLibHttpClient::post(const std::string& uriStr,
75
75
return makeResult (
76
76
makeClientAndApplyQuery (uri, config, timeoutSecs_, sslCertStrict_)
77
77
->Post (
78
- uri.buildPath (). c_str () ,
78
+ uri.buildPath (),
79
79
body ? body->body : std::string (),
80
- body ? body->contentType . c_str () : nullptr ));
80
+ body ? body->contentType : std::string () ));
81
81
}
82
82
83
83
Result HttpLibHttpClient::put (const std::string& uriStr,
@@ -88,9 +88,9 @@ Result HttpLibHttpClient::put(const std::string& uriStr,
88
88
return makeResult (
89
89
makeClientAndApplyQuery (uri, config, timeoutSecs_, sslCertStrict_)
90
90
->Put (
91
- uri.buildPath (). c_str () ,
91
+ uri.buildPath (),
92
92
body ? body->body : std::string (),
93
- body ? body->contentType . c_str () : nullptr ));
93
+ body ? body->contentType : std::string () ));
94
94
}
95
95
96
96
Result HttpLibHttpClient::del (const std::string& uriStr,
@@ -101,9 +101,9 @@ Result HttpLibHttpClient::del(const std::string& uriStr,
101
101
return makeResult (
102
102
makeClientAndApplyQuery (uri, config, timeoutSecs_, sslCertStrict_)
103
103
->Delete (
104
- uri.buildPath (). c_str () ,
104
+ uri.buildPath (),
105
105
body ? body->body : std::string (),
106
- body ? body->contentType . c_str () : nullptr ));
106
+ body ? body->contentType : std::string () ));
107
107
}
108
108
109
109
Result HttpLibHttpClient::patch (const std::string& uriStr,
@@ -114,9 +114,9 @@ Result HttpLibHttpClient::patch(const std::string& uriStr,
114
114
return makeResult (
115
115
makeClientAndApplyQuery (uri, config, timeoutSecs_, sslCertStrict_)
116
116
->Patch (
117
- uri.buildPath (). c_str () ,
117
+ uri.buildPath (),
118
118
body ? body->body : std::string (),
119
- body ? body->contentType . c_str () : nullptr ));
119
+ body ? body->contentType : std::string () ));
120
120
}
121
121
122
122
Result MockHttpClient::get (const std::string& uri,
0 commit comments