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-cmds
Commits
2b5e4a02
Unverified
Commit
2b5e4a02
authored
Dec 14, 2017
by
Steven Allen
Committed by
GitHub
Dec 14, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #44 from ipfs/fix/deadlock
fix deadlock on error
parents
651d8d7e
3494d2b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
http/handler.go
http/handler.go
+2
-0
No files found.
http/handler.go
View file @
2b5e4a02
...
...
@@ -188,11 +188,13 @@ func (i internalHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
}
re
:=
NewResponseEmitter
(
w
,
r
.
Method
,
req
)
defer
re
.
Close
()
// call the command
err
=
i
.
root
.
Call
(
req
,
re
)
if
err
!=
nil
{
http
.
Error
(
w
,
err
.
Error
(),
http
.
StatusInternalServerError
)
return
}
d
:=
re
.
(
Doner
)
...
...
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