mirror of
https://github.com/golang/go
synced 2024-11-05 19:46:11 -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:
parent
10179a7e86
commit
e1d85eb8a3
@ -51,7 +51,7 @@ func allowShare(r *http.Request) bool {
|
|||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
switch r.Header.Get("X-AppEngine-Country") {
|
switch r.Header.Get("X-AppEngine-Country") {
|
||||||
case "", "ZZ", "HK", "CN", "RC":
|
case "", "ZZ", "CN":
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
return true
|
return true
|
||||||
|
@ -162,7 +162,7 @@ func allowShare(r *http.Request) bool {
|
|||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
switch r.Header.Get("X-AppEngine-Country") {
|
switch r.Header.Get("X-AppEngine-Country") {
|
||||||
case "", "ZZ", "HK", "CN", "RC":
|
case "", "ZZ", "CN":
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
return true
|
return true
|
||||||
|
@ -56,7 +56,7 @@ func allowShare(r *http.Request) bool {
|
|||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
switch r.Header.Get("X-AppEngine-Country") {
|
switch r.Header.Get("X-AppEngine-Country") {
|
||||||
case "", "ZZ", "HK", "CN", "RC":
|
case "", "ZZ", "CN":
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
return true
|
return true
|
||||||
|
Loading…
Reference in New Issue
Block a user