diff --git a/godoc/page.go b/godoc/page.go index 50e969009d..79b1e19639 100644 --- a/godoc/page.go +++ b/godoc/page.go @@ -51,7 +51,7 @@ func allowShare(r *http.Request) bool { return true } switch r.Header.Get("X-AppEngine-Country") { - case "", "ZZ", "HK", "CN", "RC": + case "", "ZZ", "CN": return false } return true diff --git a/godoc/proxy/proxy.go b/godoc/proxy/proxy.go index 74abacbd48..4d9ac66b21 100644 --- a/godoc/proxy/proxy.go +++ b/godoc/proxy/proxy.go @@ -162,7 +162,7 @@ func allowShare(r *http.Request) bool { return true } switch r.Header.Get("X-AppEngine-Country") { - case "", "ZZ", "HK", "CN", "RC": + case "", "ZZ", "CN": return false } return true diff --git a/playground/common.go b/playground/common.go index 16591a7a3a..d8c28052d7 100644 --- a/playground/common.go +++ b/playground/common.go @@ -56,7 +56,7 @@ func allowShare(r *http.Request) bool { return true } switch r.Header.Get("X-AppEngine-Country") { - case "", "ZZ", "HK", "CN", "RC": + case "", "ZZ", "CN": return false } return true