mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2026-11-15 19:13:39 +00:00
Removed HTTP version. It's now always 'HTTP/1.1'.
This commit is contained in:
1 parent
37130cd7f9
commit
312a8d7523
5 files changed
+42
-71
No files matched your search
+2
-4
@@ -68,12 +68,10 @@ std::string log(const Request& req, const Response& res)
|
||||
|
||||
int main(void)
|
||||
{
|
||||
auto version = httplib::HttpVersion::v1_1;
|
||||
|
||||
#ifdef CPPHTTPLIB_OPENSSL_SUPPORT
|
||||
SSLServer svr(SERVER_CERT_FILE, SERVER_PRIVATE_KEY_FILE, version);
|
||||
SSLServer svr(SERVER_CERT_FILE, SERVER_PRIVATE_KEY_FILE);
|
||||
#else
|
||||
Server svr(version);
|
||||
Server svr;
|
||||
#endif
|
||||
|
||||
if (!svr.is_valid()) {
|
||||
|
||||
Reference in new issue
Block a user