node-http-link-header icon indicating copy to clipboard operation
node-http-link-header copied to clipboard

Make parse fn robust when undefined

Open binarykitchen opened this issue 4 years ago • 6 comments

When you do something like LinkHeader.parse(undefined) it crashes with:

Uncaught TypeError: Cannot read property 'replace' of undefined

I'd make this a bit more robust and would just return undefined as well.

binarykitchen avatar Nov 30 '20 01:11 binarykitchen