From 474c56b95a79486fb76417fcf47c20b0ca9ee542 Mon Sep 17 00:00:00 2001 From: Drew Blas Date: Wed, 19 Jun 2019 12:17:33 -0500 Subject: [PATCH] Disabled transport encoding to okta to prevent EOF (#148) --- lib/okta.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/okta.go b/lib/okta.go index 3fac852d..e9a5e59c 100644 --- a/lib/okta.go +++ b/lib/okta.go @@ -476,7 +476,11 @@ func (o *OktaClient) Get(method string, path string, data []byte, recv interface "Cache-Control": []string{"no-cache"}, } } else { - header = http.Header{} + // disable gzip encoding; it was causing spurious EOFs + // for some users; see #148 + header = http.Header{ + "Accept-Encoding": []string{"identity"}, + } } transCfg := &http.Transport{