v3.0.0
版本发布时间: 2024-06-05 06:25:15
urfave/negroni最新发布版本:v3.1.1(2024-06-05 06:25:51)
Fixed
- Replace multiple slashes at the beginning of a path with a single one to avoid open redirects
- Avoid updating
ResponseWriter.Status()
if the status has already been written whenResponseWriter.WriteHeader()
is called twice
Changed
-
ResponseWriter
now only implementshttp
interfaces (Flusher
,Hijacker
,CloseNotifier
) if the wrappedhttp.ResponseWriter
does. This is a breaking change to makeResponseWriter
's interface support more accurate
Added
-
ResponseWriter
now implementsio.ReaderFrom
to more efficiently send responses viaio.Copy