Skip to content

Commit

Permalink
Passing test about robots.txt agent case insensitivity.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Lecocq committed Nov 16, 2016
1 parent c4fb673 commit 8ef6c37
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/robots.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ namespace Rep
{
if (key.compare("user-agent") == 0)
{
// Store the user agent string as lowercased
std::transform(value.begin(), value.end(), value.begin(), ::tolower);

if (last_agent)
{
group.push_back(value);
Expand Down

0 comments on commit 8ef6c37

Please sign in to comment.