Fix a bug in the mime-type decoder for the /doc method.