simplify string utilities

This commit is contained in:
Chunting Gu
2021-04-19 14:01:18 +08:00
parent f5f72d7897
commit 01210e8a42
16 changed files with 150 additions and 191 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ RequestPtr RequestBuilder::operator()() {
} else if (!form_parts_.empty()) {
// Another choice to generate the boundary is like what Apache does.
// See: https://stackoverflow.com/a/5686863
auto boundary = random_string(30);
auto boundary = RandomString(30);
request->SetContentType("multipart/form-data; boundary=" + boundary);