Skip to content

Commit

Permalink
Update server_adapter_go.go
Browse files Browse the repository at this point in the history
Avoid message "INFO  02:07:49    app server_adapter_go.go:499: http: superfluous response.WriteHeader call from github.com/revel/revel.(*GoResponse).WriteStream (server_adapter_go.go:499)   section=system"
  • Loading branch information
lujiacn committed Jul 1, 2020
1 parent a3d7a7c commit bfad570
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions server_adapter_go.go
Expand Up @@ -495,9 +495,7 @@ func (r *GoResponse) WriteStream(name string, contentlen int64, modtime time.Tim
if _, err := io.Copy(r.Writer, reader); err != nil {
r.Original.WriteHeader(http.StatusInternalServerError)
return err
} else {
r.Original.WriteHeader(http.StatusOK)
}
}
}
return nil
}
Expand Down

0 comments on commit bfad570

Please sign in to comment.