Skip to content

Commit 4a19e1d

Browse files
committed
fix not-modified fail on 1.26 net/http
1 parent cf343fa commit 4a19e1d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

server/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ func (s server) getBinaryFile(c *echo.Context) error {
110110
//return c.Blob(http.StatusOK, "application/ocetet-stream", b)
111111
return c.File(path)
112112
} else {
113-
return c.String(http.StatusNotModified, "")
113+
return c.NoContent(http.StatusNotModified)
114114
}
115115
}
116116

0 commit comments

Comments
 (0)