unjs / ipx

🖼️ High performance, secure and easy-to-use image optimizer.
MIT License
1.54k stars 61 forks source link

fix: use `hasProtocol` rather than checking if url starts with `http` #80

Closed danielroe closed 2 years ago

danielroe commented 2 years ago

resolves https://github.com/unjs/ipx/issues/79

Thanks @eggsy.

eggsy commented 2 years ago

wow 🤯 - this was fast!

danielroe commented 2 years ago

Issue here is that localhost:3000 is thought to be a protocol -> https://github.com/unjs/ufo/issues/70