[TIMOB-17133] Try gzip if contentLength is unknown (-1)
Merge pull request #5790 from ayeung/timob-17133-3_3_X

[TIMOB-17133](3_3_X) Try gzip if contentLength is unknown (-1)