Commit 7d57def0 authored by keks's avatar keks Committed by Jeromy

remove dead code, update TODO

License: MIT
Signed-off-by: default avatarkeks <keks@cryptoscope.co>
parent 94be1f21
# TODO before merge
- t0110 fails (marked as known breakage for now)
- t0110 fails (marked as known breakage for now) Issue: go-ipfs-cmds#47
- t0410 fails (marked as known breakage for now)
- some unused code in core/corehttp/commands.go should either be made to work or removed
......@@ -166,16 +166,3 @@ func CheckVersionOption() ServeOption {
return mux, nil
})
}
// ServerNameOption returns a ServeOption that makes the http server set the Server HTTP header.
func ServerNameOption(name string) ServeOption {
return ServeOption(func(n *core.IpfsNode, l net.Listener, next *http.ServeMux) (*http.ServeMux, error) {
mux := http.NewServeMux()
mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Server", name)
next.ServeHTTP(w, r)
})
return mux, nil
})
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment