(s)
| 96 | // against the word "cookie." As of V8 6.6 this is faster than handrolling or |
| 97 | // using a case-insensitive RegExp. |
| 98 | function isCookieField(s) { |
| 99 | return s.length === 6 && s.toLowerCase() === 'cookie'; |
| 100 | } |
| 101 | |
| 102 | function isContentDispositionField(s) { |
| 103 | return s.length === 19 && s.toLowerCase() === 'content-disposition'; |
no outgoing calls
no test coverage detected
searching dependent graphs…