@cryptotaxi247 / kubo / commits / 7d57def06

remove dead code, update TODO

License: MIT Signed-off-by: keks <keks@cryptoscope.co>

keks committed Dec 18, 2017 at 15:38 UTC 7d57def06e11a88c76e6731c8518db146b25d397
2 files changed +1 -15
TODO.md
+1 -2
@@ -1,5 +1,4 @@
1 # TODO before merge
2
3 -- t0110 fails (marked as known breakage for now)
3 +- t0110 fails (marked as known breakage for now) Issue: go-ipfs-cmds#47
4 - t0410 fails (marked as known breakage for now)
5 -- some unused code in core/corehttp/commands.go should either be made to work or removed
core/corehttp/commands.go
-13
@@ -166,16 +166,3 @@ func CheckVersionOption() ServeOption {
166 return mux, nil
167 })
168 }
169 -
170 -// ServerNameOption returns a ServeOption that makes the http server set the Server HTTP header.
171 -func ServerNameOption(name string) ServeOption {
172 - return ServeOption(func(n *core.IpfsNode, l net.Listener, next *http.ServeMux) (*http.ServeMux, error) {
173 - mux := http.NewServeMux()
174 - mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
175 - w.Header().Set("Server", name)
176 - next.ServeHTTP(w, r)
177 - })
178 -
179 - return mux, nil
180 - })
181 -}