Enabling gzip encoding for /api/* end point.

Fixing a bad merge from https://reviews.apache.org/r/18658/

Testing Done:
Tested on laptop.

Reviewed at https://reviews.apache.org/r/21460/