1
0
mirror of https://github.com/golang/go synced 2024-11-05 17:06:13 -07:00

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 <adg@golang.org>
This commit is contained in:
Andrew Gerrand 2015-09-28 17:00:17 +10:00
parent 10179a7e86
commit e1d85eb8a3
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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

View File

@ -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