Made priority matching return item from priorities in favor of headers from user agent