Skip to content

Commit ac677d3

Browse files
committed
Potential solution for cn partition #102
1 parent 9c14042 commit ac677d3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

iamlivecore/proxy.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,7 @@ type ActionCandidate struct {
438438

439439
func handleAWSRequest(req *http.Request, body []byte, respCode int) {
440440
host := req.Host
441+
host = strings.TrimSuffix(host, ".cn")
441442
uri := req.RequestURI
442443

443444
var endpointUriPrefix string

0 commit comments

Comments
 (0)