Skip to content
This repository has been archived by the owner on May 18, 2021. It is now read-only.

Commit

Permalink
Disabled transport encoding to okta to prevent EOF (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
drewblas authored and nickatsegment committed Jun 19, 2019
1 parent 716f852 commit 474c56b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/okta.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit 474c56b

Please sign in to comment.