diff --git a/src/subexport.cpp b/src/subexport.cpp index f89ffbc..369570d 100644 --- a/src/subexport.cpp +++ b/src/subexport.cpp @@ -2496,7 +2496,7 @@ int uploadGist(std::string name, std::string path, std::string content, bool wri { //std::cerr<<"No gist id is provided. Creating new gist...\n"; writeLog(0, "No Gist id is provided. Creating new Gist...", LOG_LEVEL_ERROR); - retVal = curlPost("https://api.github.com/gists", buildGistData(path, content), getSystemProxy(), token, &retData); + retVal = webPost("https://api.github.com/gists", buildGistData(path, content), getSystemProxy(), token, &retData); if(retVal != 201) { //std::cerr<<"Create new Gist failed! Return data:\n"<