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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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; }