~blowry/sourcehut-vanity

924adc0e863c9752f9eeb96e6c7bc407d9e672cb — Benjamin Lowry 3 years ago a8909c0
Use correct import host for submodules
1 files changed, 1 insertions(+), 1 deletions(-)

M vanityserver/vanityserver.go
M vanityserver/vanityserver.go => vanityserver/vanityserver.go +1 -1
@@ 58,7 58,7 @@ func (server VanityServer) ServeHTTP(rw http.ResponseWriter, r *http.Request) {
        destination = baseurl
    }
    if (r.Form.Get("go-get") == "1") { // go-get(1)
        tmpl.Execute(rw, templatedata{User: server.Username, ImportHost: r.Host + r.URL.Path, ProjectName: projectname, Redir: destination})
        tmpl.Execute(rw, templatedata{User: server.Username, ImportHost: r.Host + "/" + projectname, ProjectName: projectname, Redir: destination})
    } else { // Standard browser
        http.Redirect(rw, r, destination, 302)
    }