X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=rounds%2FredirectHTML.go;h=d139eb28ae41157c5e5bfc50ad4a784d81b10a73;hb=c1f841e8a5e4c30710cdb2e57fd87cba9d79b97b;hp=abc657e6546a8926d249f5eb0c418c50d32a7698;hpb=539e5df5806bd22c8eaddeb0409e6b8b187eda4c;p=tofuproxy.git diff --git a/rounds/redirectHTML.go b/rounds/redirectHTML.go index abc657e..d139eb2 100644 --- a/rounds/redirectHTML.go +++ b/rounds/redirectHTML.go @@ -82,14 +82,13 @@ func RoundRedirectHTML( w.Header().Add("Content-Type", "text/html") w.WriteHeader(http.StatusOK) location := resp.Header.Get("Location") - w.Write([]byte( - fmt.Sprintf( - ` + fmt.Fprintf( + w, ` %d %s: %s redirection %s`, - resp.StatusCode, http.StatusText(resp.StatusCode), - redirType, location, location, - ))) + resp.StatusCode, http.StatusText(resp.StatusCode), + redirType, location, location, + ) fifos.LogRedir <- fmt.Sprintf( "%s %s\t%s\t%s", req.Method, req.URL, resp.Status, location, )