mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2026-11-10 16:30:53 +00:00
clang-format
This commit is contained in:
1 parent
0be0526085
commit
7a212cfe40
1 file changed
+2
-1
@@ -5723,7 +5723,8 @@ inline bool parse_www_authenticate(const Response &res,
|
||||
bool is_proxy) {
|
||||
auto auth_key = is_proxy ? "Proxy-Authenticate" : "WWW-Authenticate";
|
||||
if (res.has_header(auth_key)) {
|
||||
thread_local auto re = std::regex(R"~((?:(?:,\s*)?(.+?)=(?:"(.*?)"|([^,]*))))~");
|
||||
thread_local auto re =
|
||||
std::regex(R"~((?:(?:,\s*)?(.+?)=(?:"(.*?)"|([^,]*))))~");
|
||||
auto s = res.get_header_value(auth_key);
|
||||
auto pos = s.find(' ');
|
||||
if (pos != std::string::npos) {
|
||||
|
||||
Reference in new issue
Block a user