Minimal http.Handler middleware that defends against BREACH by adding Heal the BREACH style mitigations to the response written by the http.ResponseWriter.
go get golang.unexpl0.red/gzip-handler
package main
import (
"log"
"net/http"
gz "golang.unexpl0.red/gzip-handler"
)
func main() {
log.Fatal(http.ListenAndServe(":8080", gz.Handler(http.FileServer(http.Dir("./")))))
}