diff --git a/example/Makefile b/example/Makefile index 4ddd3d8314..931db09ce7 100644 --- a/example/Makefile +++ b/example/Makefile @@ -1,6 +1,6 @@ #CXX = clang++ -CXXFLAGS = -std=c++14 -I.. -Wall -Wextra -pthread +CXXFLAGS = -std=c++11 -I.. -Wall -Wextra -pthread OPENSSL_DIR = /usr/local/opt/openssl OPENSSL_SUPPORT = -DCPPHTTPLIB_OPENSSL_SUPPORT -I$(OPENSSL_DIR)/include -L$(OPENSSL_DIR)/lib -lssl -lcrypto diff --git a/example/simplecli.cc b/example/simplecli.cc index e43434f346..52d1b43665 100644 --- a/example/simplecli.cc +++ b/example/simplecli.cc @@ -17,7 +17,7 @@ int main(void) { auto scheme_host_port = "http://localhost:8080"; #endif - auto res = httplib::Client2(scheme_host_port).Get("/hi"); + auto res = httplib::Client(scheme_host_port).Get("/hi"); if (res) { cout << res->status << endl; diff --git a/example/ssecli.cc b/example/ssecli.cc index c85c29951f..2c938229f6 100644 --- a/example/ssecli.cc +++ b/example/ssecli.cc @@ -11,7 +11,7 @@ using namespace std; int main(void) { - httplib::Client2("http://localhost:1234") + httplib::Client("http://localhost:1234") .Get("/event1", [&](const char *data, size_t data_length) { std::cout << string(data, data_length); return true;