Skip to content

Minimal http.Handler that mitigates against BREACH

License

Notifications You must be signed in to change notification settings

d-z-m/gzip-handler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

gzip-handler

Minimal http.Handler middleware that defends against BREACH by adding Heal the BREACH style mitigations to the response written by the http.ResponseWriter.

Installing

go get golang.unexpl0.red/gzip-handler

Using

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("./")))))
}

About

Minimal http.Handler that mitigates against BREACH

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages