Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
7d57def0
Commit
7d57def0
authored
Dec 18, 2017
by
keks
Committed by
Jeromy
Jan 21, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove dead code, update TODO
License: MIT Signed-off-by:
keks
<
keks@cryptoscope.co
>
parent
94be1f21
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
15 deletions
+1
-15
TODO.md
TODO.md
+1
-2
core/corehttp/commands.go
core/corehttp/commands.go
+0
-13
No files found.
TODO.md
View file @
7d57def0
# 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
core/corehttp/commands.go
View file @
7d57def0
...
...
@@ -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
})
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment