updated comment for why accept-encoding header is set and fix #2