Skip to content

Commit 681d388

Browse files
authored
Use move semantics for auth key and value (#2306)
1 parent ae94d64 commit 681d388

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

httplib.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6822,7 +6822,7 @@ inline bool parse_www_authenticate(const Response &res,
68226822
static_cast<size_t>(m.length(2)))
68236823
: s.substr(static_cast<size_t>(m.position(3)),
68246824
static_cast<size_t>(m.length(3)));
6825-
auth[key] = val;
6825+
auth[std::move(key)] = std::move(val);
68266826
}
68276827
return true;
68286828
}

0 commit comments

Comments
 (0)