I am creating a module for compressing HTTP output. While reading the spec , I did not find a clear difference in a few things:
Accept-Encoding:
Should this be handled in the same way as Accept-Encoding: * , or as if no header was present?
Or what if I don't support gzip, but get the header like this:
Accept-Encoding: gzip
Should I return 406 error or just return data not assigned?
EDIT:
I read the spec several times. It mentions my first case, but it does not determine what the server behavior should be.
Should I treat this case as if the title is missing? Or should I return a 406 error because there is no way to encode something based on a field value ('' is not a valid encoding).
source share