We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 56a5487 commit bc2b263Copy full SHA for bc2b263
iamlivecore/proxy.go
@@ -156,7 +156,7 @@ func createProxy(addr string) {
156
proxy.OnRequest().DoFunc(func(req *http.Request, ctx *goproxy.ProxyCtx) (*http.Request, *http.Response) { // TODO: Move to onResponse for HTTP response codes
157
body, _ := ioutil.ReadAll(req.Body)
158
159
- isAWSHostname, _ := regexp.MatchString(`^[^.]*\.amazonaws\.com(?:\.cn)?$`, req.Host)
+ isAWSHostname, _ := regexp.MatchString(`^.*\.amazonaws\.com(?:\.cn)?$`, req.Host)
160
if isAWSHostname {
161
handleAWSRequest(req, body, 200)
162
}
0 commit comments