added better support for automatic decompression by updating the method with the latest code from the original net/http package. It avoids a problem where if the server sends an empty Content-Length then the old code would fail on decompression. Now if the cs.requestGzip is false, it won't bother decompressing and leave it up to the user as it should. #12
Enhance your code review process with GitHub Actions
GitHub Actions make it easy to automate all your software workflows, now with world-class CI/CD.
Build, test, and deploy your code right from GitHub. Learn more about GitHub Actions.