)
func init() {
- godlighty.Hosts["www.cryptoanarchy.ru"] = &godlighty.HostCfg{
+ host := "www.cryptoanarchy.ru"
+ godlighty.Hosts[host] = &godlighty.HostCfg{
Hooks: []godlighty.Hook{
func(w http.ResponseWriter, r *http.Request) bool {
- http.Redirect(
- w, r,
+ redirect(
+ host, w, r,
"//www.cypherpunks.ru/Manifesto-cryptoanarchist.html",
- http.StatusTemporaryRedirect,
+ http.StatusMovedPermanently,
)
return true
},