3 ms·
We have to accept mangled requests when there are clients out there that send mangled requests, which they will continue to do as long as servers accept them. P
by immibis 1y ago
We have to accept mangled requests when there are clients out there that send mangled requests, which they will continue to do as long as servers accept them. Postel's law was good for prototyping but created a security nightmare in production.
- sfn42 1y agoFirst you create an API, then others start using it. So if you never allow mangled requests your clients will necessarily send proper requests. If you're maintaining an old api you can publish new versions of endpoints that don't accept mangled requests. If it's important you can give clients a time limit like let's say a few months to update their software to use your updated endpoints before you remove the old ones.