From b6407514da95a24f1946d0a94dddcc6bad41c259 Mon Sep 17 00:00:00 2001 From: Giovanni Harting <539@idlegandalf.com> Date: Wed, 7 Dec 2022 15:21:34 +0100 Subject: [PATCH] fixed content length --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 7844f21..39a2d29 100644 --- a/main.go +++ b/main.go @@ -1102,7 +1102,7 @@ func getSiteMap(c *gin.Context) { } _ = tWriter.Close() }() - c.DataFromReader(http.StatusOK, 0, "application/xml", tReader, nil) + c.DataFromReader(http.StatusOK, -1, "application/xml", tReader, nil) } /*