modify type of `option.gzip` of StringClient to boolean

I saw that the following code only used `if (this.gzip)` for condition, so should it be boolean but not object?