···317317318318// this should serve the go-import meta tag even if the path is technically
319319// a 404 like tangled.sh/oppi.li/go-git/v5
320320+//
321321+// we're keeping the tangled.sh go-import tag too to maintain backward
322322+// compatiblity for modules that still point there. they will be redirected
323323+// to fetch source from tangled.org
320324func (mw Middleware) GoImport() middlewareFunc {
321325 return func(next http.Handler) http.Handler {
322326 return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
···332336 if r.Header.Get("User-Agent") == "Go-http-client/1.1" {
333337 if r.URL.Query().Get("go-get") == "1" {
334338 html := fmt.Sprintf(
335335- `<meta name="go-import" content="tangled.sh/%s git https://tangled.sh/%s"/>`,
339339+ `<meta name="go-import" content="tangled.sh/%s git https://tangled.sh/%s"/>
340340+<meta name="go-import" content="tangled.org/%s git https://tangled.org/%s"/>`,
336341 fullName,
337342 fullName,
338343 )