--- /dev/null
+# Test Description
+
+Test HTTP Content-encoding identity
+
+# Ticket
+
+https://redmine.openinfosecfoundation.org/issues/7843
+
+# Pcap
+
+Crafted with:
+- `go run server.go`
+- `curl -i -v 127.0.0.1:8080/`
--- /dev/null
+package main
+
+import (
+ "fmt"
+ "net/http"
+)
+
+func main() {
+ handler := http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
+ w.Header().Set("Server", "Jetty")
+ w.Header().Set("Content-encoding", "identity")
+ content := "identity content-encoding works"
+ _, _ = w.Write([]byte(content))
+ })
+
+ server := &http.Server{
+ Addr: "0.0.0.0:8080",
+ Handler: handler,
+ }
+
+ fmt.Printf("Listening [0.0.0.0:8080]...\n")
+ err := server.ListenAndServe()
+ fmt.Printf("lol %s", err)
+}