Skip to content

Commit

Permalink
try to force http1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
olivierdelobre committed Dec 18, 2024
1 parent 7ae84eb commit 9b54af5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion api/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package api

import (
"bytes"
"crypto/tls"
"fmt"
"io"
"net/http"
Expand All @@ -18,7 +19,8 @@ func CallApi(verb string, url string, payload string, userId string, password st
}

transport := &http.Transport{
ForceAttemptHTTP2: false, // Disable HTTP/2
ForceAttemptHTTP2: false, // Disable HTTP/2
TLSNextProto: map[string]func(string, *tls.Conn) http.RoundTripper{}, // Disable HTTP/2 upgrades
}

//fmt.Printf("--------- call %s:%s\n", verb, url)
Expand Down

0 comments on commit 9b54af5

Please sign in to comment.