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

Disabled transport encoding to okta to prevent EOF #148

Merged
merged 2 commits into from
Jun 19, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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