erlyaws / yaws

Yaws webserver
https://erlyaws.github.io
BSD 3-Clause "New" or "Revised" License
1.28k stars 267 forks source link

yaws_dynopts: do not even mention http_uri:parse/1 in OTP >= 23 #484

Closed mikpe closed 7 months ago

mikpe commented 7 months ago

Rewrite the conditional use of http_uri:parse/1 to use a compile-time check rather than a runtime one. This makes life easier for those of use who integrate Yaws in systems and apply static checks to the whole systems. Found when preparing to update to OTP-26.