Skip to content

Commit de27e88

Browse files
authored
Merge pull request #8 from glyn/7-test-case-insensitivity
Test case insensitive matching of user agent
2 parents 28d8e86 + 275d594 commit de27e88

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/robot.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,5 +247,6 @@ mod test {
247247
assert_eq!(true, allow_access("User-agent: Xbot\nDisallow: /z", "XBot/3.2.1", "/"));
248248
assert_eq!(true, allow_access("User-agent: Xbot\nDisallow: /z", "XBot/3.2.1", "/w"));
249249
assert_eq!(false, allow_access("User-agent: Xbot\nDisallow: /", "XBot", "/"));
250+
assert_eq!(false, allow_access("User-agent: Xbot\nDisallow: /", "xbot", "/"));
250251
}
251252
}

0 commit comments

Comments
 (0)