mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2026-10-30 22:38:07 +00:00
ClientImpl and SSLClient let callers set origin credentials with set_basic_auth()/set_bearer_token_auth(), but WebSocketClient could only take a fixed Authorization header through its constructor. Add both setters: each connect() adds the Authorization header to the upgrade request from the current credentials (Basic over Bearer), unless the constructor headers already carry one, and never to the proxy's CONNECT request.
1.0 MiB
1.0 MiB