Code Review
/
ric-plt
/
e2mgr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
[RIC-213] Add globalRicId to configuration and remove env var RIC_ID
[ric-plt/e2mgr.git]
/
E2Manager
/
controllers
/
e2t_controller.go
diff --git
a/E2Manager/controllers/e2t_controller.go
b/E2Manager/controllers/e2t_controller.go
index
01d89dc
..
5b1b38d
100644
(file)
--- a/
E2Manager/controllers/e2t_controller.go
+++ b/
E2Manager/controllers/e2t_controller.go
@@
-69,12
+69,6
@@
func (c *E2TController) handleRequest(writer http.ResponseWriter, header *http.H
return
}
return
}
- if response == nil {
- writer.WriteHeader(http.StatusNoContent)
- c.logger.Infof("[E2 Manager -> Client] #E2TController.handleRequest - status response: %v", http.StatusNoContent)
- return
- }
-
result, err := response.Marshal()
if err != nil {
result, err := response.Marshal()
if err != nil {
@@
-112,10
+106,6
@@
func (c *E2TController) handleErrorResponse(err error, writer http.ResponseWrite
writer.Header().Set("Content-Type", "application/json")
writer.WriteHeader(httpError)
_, err = writer.Write(errorResponse)
writer.Header().Set("Content-Type", "application/json")
writer.WriteHeader(httpError)
_, err = writer.Write(errorResponse)
-
- if err != nil {
- c.logger.Errorf("#E2TController.handleErrorResponse - Cannot send response. writer:%v", writer)
- }
}
func (c *E2TController) prettifyRequest(request *http.Request) string {
}
func (c *E2TController) prettifyRequest(request *http.Request) string {