When log is aggregated and archived we don't have a way to return it in JSON format, only text format. Till recently we were returning a text response or a redirect to S3 even if Accept header was set only to JSON. This commit fixes it.