Skip to content

Commit 7a212cf

Browse files
committed
clang-format
1 parent 0be0526 commit 7a212cf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

httplib.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5723,7 +5723,8 @@ inline bool parse_www_authenticate(const Response &res,
57235723
bool is_proxy) {
57245724
auto auth_key = is_proxy ? "Proxy-Authenticate" : "WWW-Authenticate";
57255725
if (res.has_header(auth_key)) {
5726-
thread_local auto re = std::regex(R"~((?:(?:,\s*)?(.+?)=(?:"(.*?)"|([^,]*))))~");
5726+
thread_local auto re =
5727+
std::regex(R"~((?:(?:,\s*)?(.+?)=(?:"(.*?)"|([^,]*))))~");
57275728
auto s = res.get_header_value(auth_key);
57285729
auto pos = s.find(' ');
57295730
if (pos != std::string::npos) {
@@ -7583,7 +7584,7 @@ inline bool ClientImpl::read_response_line(Stream &strm, const Request &req,
75837584
#ifdef CPPHTTPLIB_ALLOW_LF_AS_LINE_TERMINATOR
75847585
thread_local const std::regex re("(HTTP/1\\.[01]) (\\d{3})(?: (.*?))?\r?\n");
75857586
#else
7586-
thread_local const std::regex re("(HTTP/1\\.[01]) (\\d{3})(?: (.*?))?\r\n");
7587+
thread_local const std::regex re("(HTTP/1\\.[01]) (\\d{3})(?: (.*?))?\r\n");
75877588
#endif
75887589

75897590
std::cmatch m;

0 commit comments

Comments
 (0)