Files
espurna/code/espurna/api.cpp
Maxim Prokhorov 196bb5bc7a api: relax 'accept:' requirements
If the endpoint receives no header, treat it as '*/*'

Don't fail prematurely, since asyncwebserver handler needs to claim the
request to issue a custom response code.
ref.
- https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/406
- https://datatracker.ietf.org/doc/html/rfc7231#section-6.5.6
2021-12-20 14:11:52 +03:00

19 KiB