Fix content-type parsing issue; refine http parser.

This commit is contained in:
Chunting Gu
2019-04-15 12:53:43 +08:00
parent 5e1b14e74d
commit df4bb33bd8
9 changed files with 76 additions and 51 deletions
+2 -1
View File
@@ -109,7 +109,8 @@ void CreateAuthorization(webcc::HttpClientSession& session,
const std::string& auth) {
try {
std::string data = "{'note': 'Webcc test', 'scopes': ['public_repo', 'repo', 'repo:status', 'user']}";
std::string data = "{'note': 'Webcc test', 'scopes': ['public_repo',\
'repo', 'repo:status', 'user']}";
auto r = session.Post(kUrlRoot + "/authorizations", std::move(data), true,
{"Authorization", auth});