Variables for use in content-based routing are documented here
headers variable is plural in docs, but singular in code
Docs are correct, this variable should be plural since it's a collection.