mirror of
https://github.com/apple/swift-nio
synced 2026-11-24 04:37:54 +00:00
Motivation: It's quite common that someone asks for the canonical form of a header and we don't have any header values. There's no need to do string comparisons then, we can just return an empty array. Modifications: Check if we're asking for a header that isn't present and if so, just return the empty array. Result: Should be ever so slightly faster.