Skip to content

Commit

Permalink
Disable http/2 on Discord client
Browse files Browse the repository at this point in the history
  • Loading branch information
germanoeich committed Apr 12, 2022
1 parent d43ecc1 commit f95c3a8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/discord.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package lib

import (
"context"
"crypto/tls"
"encoding/json"
"errors"
"github.com/sirupsen/logrus"
Expand Down Expand Up @@ -61,6 +62,7 @@ func createTransport(ip string) http.RoundTripper {
ExpectContinueTimeout: 2 * time.Second,
DialContext: dialContext,
ResponseHeaderTimeout: 0,
TLSNextProto: map[string]func(string, *tls.Conn) http.RoundTripper{},
}
return &transport
}
Expand Down

0 comments on commit f95c3a8

Please sign in to comment.