Skip to content

Commit

Permalink
fix: disable http2 client for requests
Browse files Browse the repository at this point in the history
Setting the env var explicitly is the cleanest way to have all child
packages respect the client and keep it in the code rather than a build
flag.

closes #guyfedwards#7
  • Loading branch information
guyfedwards committed Jan 21, 2023
1 parent 13cc59e commit a5e0566
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/nom/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ func run(args []string, opts Options) error {
}

func main() {
// disable http2 client as causing issues with reddit rss feed requests
// https://github.com/guyfedwards/nom/issues/7
os.Setenv("GODEBUG", "http2client=0")

var opts Options

parser := flags.NewParser(&opts, flags.Default)
Expand Down

0 comments on commit a5e0566

Please sign in to comment.