diff --git a/example/main.go b/example/main.go index 263ef8f..ec3384c 100644 --- a/example/main.go +++ b/example/main.go @@ -105,8 +105,8 @@ func curl(w http.ResponseWriter, req *http.Request) { w.Header().Set("content-type", "text/plain; charset=UTF-8") - fmt.Fprintf(w, "$ curl -sSLv %s\n\n", url) - cmd := exec.Command("curl", "-sSLv", url) + fmt.Fprintf(w, "$ curl -sSLv --http2 %s\n\n", url) + cmd := exec.Command("curl", "-sSLv", "--http2", url) cmd.Stdout = w cmd.Stderr = w if err := cmd.Run(); err != nil { diff --git a/runsd/proxy.go b/runsd/proxy.go index 4f1e583..317a9cb 100644 --- a/runsd/proxy.go +++ b/runsd/proxy.go @@ -53,7 +53,7 @@ func (rp *reverseProxy) newReverseProxyHandler(tr http.RoundTripper) http.Handle transport := loggingTransport{next: tokenInject} return &httputil.ReverseProxy{ - Transport: transport, + Transport: transport, FlushInterval: -1, // to support grpc streaming responses Director: func(req *http.Request) { klog.V(5).Infof("[director] receive req host=%s", req.Host) diff --git a/runsd/regions.go b/runsd/regions.go index 201d037..9644fc5 100644 --- a/runsd/regions.go +++ b/runsd/regions.go @@ -24,15 +24,19 @@ import ( var ( // TODO needs updating cloudRunRegionCodes = map[string]string{ - "asia-east1": "de", - "asia-northeast1": "an", - "europe-north1": "lz", - "europe-west1": "ew", - "europe-west4": "ez", - "us-central1": "uc", - "us-east1": "ue", - "us-east4": "uk", - "us-west1": "uw", + "asia-east1": "de", + "asia-northeast1": "an", + "asia-northeast2": "dt", + "asia-southeast1": "as", + "australia-southeast1": "ts", + "europe-north1": "lz", + "europe-west1": "ew", + "europe-west4": "ez", + "northamerica-northeast1": "nn", + "us-central1": "uc", + "us-east1": "ue", + "us-east4": "uk", + "us-west1": "uw", } )