mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-27 11:06:50 +01:00
GH #1050 Net: fix gcc -Wshadow warnings
This commit is contained in:
@@ -137,15 +137,15 @@ void HTTPAuthenticationParams::fromResponse(const HTTPResponse& response, const
|
||||
bool found = false;
|
||||
while (!found && it != response.end() && icompare(it->first, header) == 0)
|
||||
{
|
||||
const std::string& header = it->second;
|
||||
if (icompare(header, 0, 6, "Basic ") == 0)
|
||||
const std::string& rHeader = it->second;
|
||||
if (icompare(rHeader, 0, 6, "Basic ") == 0)
|
||||
{
|
||||
parse(header.begin() + 6, header.end());
|
||||
parse(rHeader.begin() + 6, rHeader.end());
|
||||
found = true;
|
||||
}
|
||||
else if (icompare(header, 0, 7, "Digest ") == 0)
|
||||
else if (icompare(rHeader, 0, 7, "Digest ") == 0)
|
||||
{
|
||||
parse(header.begin() + 7, header.end());
|
||||
parse(rHeader.begin() + 7, rHeader.end());
|
||||
found = true;
|
||||
}
|
||||
++it;
|
||||
|
||||
Reference in New Issue
Block a user