Revert "Fix transparent gzip for basic auth."

This reverts commit e81b809f661fdc3d5a755478a44d788985390329.