Skip to content

v3.0.0

Compare
Choose a tag to compare
@jszwedko jszwedko released this 04 Jun 22:25
· 14 commits to master since this release
81abd9b

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 when ResponseWriter.WriteHeader() is called twice

Changed

  • ResponseWriter now only implements http interfaces (Flusher, Hijacker,
    CloseNotifier) if the wrapped http.ResponseWriter does. This is a breaking
    change to make ResponseWriter's interface support more accurate

Added

  • ResponseWriter now implements io.ReaderFrom to more efficiently send
    responses via io.Copy