X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=rounds%2FredirectHTML.go;h=291086df5cd7d368d79ec570ade5c251184cf312;hb=aca0f719ffa95e51420a625813f2f4cbf1d5397c;hp=e92a4f9bd03f80c9c4e508513fb2bb0bd07f7e56;hpb=cb0d759766dd7183adc00f097760fc82ff2796d0;p=tofuproxy.git diff --git a/rounds/redirectHTML.go b/rounds/redirectHTML.go index e92a4f9..291086d 100644 --- a/rounds/redirectHTML.go +++ b/rounds/redirectHTML.go @@ -1,5 +1,6 @@ /* -tofuproxy -- HTTP proxy with TLS certificates management +tofuproxy -- flexible HTTP/HTTPS proxy, TLS terminator, X.509 TOFU + manager, WARC/geminispace browser Copyright (C) 2021 Sergey Matveev This program is free software: you can redistribute it and/or modify @@ -77,13 +78,14 @@ func RoundRedirectHTML( location := resp.Header.Get("Location") w.Write([]byte( fmt.Sprintf( - `%d %s: %s redirection + ` +%d %s: %s redirection Redirection to %s`, resp.StatusCode, http.StatusText(resp.StatusCode), redirType, location, location, ))) - fifos.SinkRedir <- fmt.Sprintf( - "%s %s\t%s\t%s", req.Method, resp.Status, req.URL.String(), location, + fifos.LogRedir <- fmt.Sprintf( + "%s %s\t%s\t%s", req.Method, req.URL, resp.Status, location, ) return false, nil }