Fix 3rd party login issue on macOS (#4739)

* Fix use-after-free error

* Ignore http OPTIONS method

* Make sure response has sent before closing the http server
This commit is contained in:
Noisyfox
2024-03-28 23:07:10 +08:00
committed by GitHub
parent f36c22385b
commit 9f3bafb04e
3 changed files with 21 additions and 12 deletions

View File

@@ -28,6 +28,7 @@ class http_headers
std::map<std::string, std::string> headers;
friend class session;
public:
std::string get_url() { return url; }