You've already forked cpp-httplib
							
							Code cleanup
This commit is contained in:
		| @@ -1,11 +1,11 @@ | |||||||
| #include <httplib.h> |  | ||||||
| #include <chrono> | #include <chrono> | ||||||
|  | #include <httplib.h> | ||||||
| #include <iostream> | #include <iostream> | ||||||
|  |  | ||||||
| using namespace std; | using namespace std; | ||||||
|  |  | ||||||
| struct StopWatch { | struct StopWatch { | ||||||
|   StopWatch(const string& label) : label_(label) { |   StopWatch(const string &label) : label_(label) { | ||||||
|     start_ = chrono::system_clock::now(); |     start_ = chrono::system_clock::now(); | ||||||
|   } |   } | ||||||
|   ~StopWatch() { |   ~StopWatch() { | ||||||
|   | |||||||
| @@ -32,12 +32,10 @@ int main(void) { | |||||||
| #ifdef CPPHTTPLIB_OPENSSL_SUPPORT | #ifdef CPPHTTPLIB_OPENSSL_SUPPORT | ||||||
|     auto result = cli.get_openssl_verify_result(); |     auto result = cli.get_openssl_verify_result(); | ||||||
|     if (result) { |     if (result) { | ||||||
|         cout << "verify error: " << X509_verify_cert_error_string(result) << endl; |       cout << "verify error: " << X509_verify_cert_error_string(result) << endl; | ||||||
|     } |     } | ||||||
| #endif | #endif | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   return 0; |   return 0; | ||||||
| } | } | ||||||
|  |  | ||||||
| // vim: et ts=4 sw=4 cin cino={1s ff=unix |  | ||||||
|   | |||||||
| @@ -17,5 +17,3 @@ int main(void) { | |||||||
|  |  | ||||||
|   svr.listen("localhost", 1234); |   svr.listen("localhost", 1234); | ||||||
| } | } | ||||||
|  |  | ||||||
| // vim: et ts=4 sw=4 cin cino={1s ff=unix |  | ||||||
|   | |||||||
| @@ -111,5 +111,3 @@ int main(void) { | |||||||
|  |  | ||||||
|   return 0; |   return 0; | ||||||
| } | } | ||||||
|  |  | ||||||
| // vim: et ts=4 sw=4 cin cino={1s ff=unix |  | ||||||
|   | |||||||
| @@ -133,5 +133,3 @@ int main(int argc, const char **argv) { | |||||||
|  |  | ||||||
|   return 0; |   return 0; | ||||||
| } | } | ||||||
|  |  | ||||||
| // vim: et ts=4 sw=4 cin cino={1s ff=unix |  | ||||||
|   | |||||||
| @@ -2557,5 +2557,3 @@ inline bool SSLClient::check_host_name(const char *pattern, | |||||||
| } // namespace httplib | } // namespace httplib | ||||||
|  |  | ||||||
| #endif // CPPHTTPLIB_HTTPLIB_H | #endif // CPPHTTPLIB_HTTPLIB_H | ||||||
|  |  | ||||||
| // vim: et ts=4 sw=4 cin cino={1s ff=unix |  | ||||||
|   | |||||||
| @@ -1382,5 +1382,3 @@ TEST(CleanupTest, WSACleanup) { | |||||||
|   ASSERT_EQ(0, ret); |   ASSERT_EQ(0, ret); | ||||||
| } | } | ||||||
| #endif | #endif | ||||||
|  |  | ||||||
| // vim: et ts=4 sw=4 cin cino={1s ff=unix |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user