You've already forked cpp-httplib
Fixed build errors and adjusted a test case.
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
|
||||
CC = clang++
|
||||
CFLAGS = -std=c++14 -I..
|
||||
#OPENSSL_SUPPORT = -DCPPHTTPLIB_OPENSSL_SUPPORT -I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib -lssl -lcrypto
|
||||
OPENSSL_SUPPORT = -DCPPHTTPLIB_OPENSSL_SUPPORT -I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib -lssl -lcrypto
|
||||
|
||||
all: server client hello simplesvr
|
||||
|
||||
|
@ -34,7 +34,7 @@ std::string log(const Request& req, const Response& res)
|
||||
|
||||
s += "================================\n";
|
||||
|
||||
snprintf(buf, sizeof(buf), "%s %s", req.method.c_str(), req.url.c_str());
|
||||
snprintf(buf, sizeof(buf), "%s %s", req.method.c_str(), req.path.c_str());
|
||||
s += buf;
|
||||
|
||||
std::string query;
|
||||
|
Reference in New Issue
Block a user