Skip to content

Commit 275d594

Browse files
committed
Test case insensitive matching of user agent
Fixes #7
1 parent 28d8e86 commit 275d594

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)