Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Minor performance improvements in header_matchers plugin
Avoid string allocation in :header matcher using tr!. Use Regexp#match instead of String#=~ in :user_agent matcher, and use match.captures in instead of $~[1..-1], which should save an array allocation (even if not, it's more understandable).
- Loading branch information