From e1d85eb8a3a8d29c824a9f1d33a8a78a8ab90b78 Mon Sep 17 00:00:00 2001 From: Andrew Gerrand Date: Mon, 28 Sep 2015 17:00:17 +1000 Subject: [PATCH] playground, godoc: remove HK and RC from share-blocked country code list These codes were initially included because of a miscommunication. They should not be in the list at all. Fixes golang/go#12747 Change-Id: I1a53e9c7be8edf5e1dbb95cd03101b93023a12c1 Reviewed-on: https://go-review.googlesource.com/15082 Reviewed-by: Andrew Gerrand --- godoc/page.go | 2 +- godoc/proxy/proxy.go | 2 +- playground/common.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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