Skip to content

Commit 6a38b4c

Browse files
committed
fix: solved some undefined references
1 parent fad35b9 commit 6a38b4c

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

http/handler/handler.go

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -73,34 +73,34 @@ func (d *DefaultHandler) HandleResponse(
7373
response *gonethttpresponse.Response,
7474
) {
7575
if response == nil {
76-
SendInternalServerError(w)
76+
SendInternalServerError(w, d.jsonEncoder)
7777
return
7878
}
7979

80-
if gonethttpresponse.Code != nil {
81-
if gonethttpresponse.DebugData != nil && d.mode != nil && d.mode.IsDebug() {
80+
if response.Code != nil {
81+
if response.DebugData != nil && d.mode != nil && d.mode.IsDebug() {
8282
_ = d.jsonEncoder.Encode(
8383
w,
84-
gonethttpresponse.DebugData,
85-
*gonethttpresponse.Code,
84+
response.DebugData,
85+
*response.Code,
8686
)
8787
return
8888
}
8989
_ = d.jsonEncoder.Encode(
9090
w,
91-
gonethttpresponse.Data,
92-
*gonethttpresponse.Code,
91+
response.Data,
92+
*response.Code,
9393
)
9494
} else {
95-
if gonethttpresponse.DebugData != nil && d.mode != nil && d.mode.IsDebug() {
95+
if response.DebugData != nil && d.mode != nil && d.mode.IsDebug() {
9696
_ = d.jsonEncoder.Encode(
9797
w,
98-
gonethttpresponse.DebugData,
99-
*gonethttpresponse.Code,
98+
response.DebugData,
99+
*response.Code,
100100
)
101101
return
102102
}
103-
SendInternalServerError(w)
103+
SendInternalServerError(w, d.jsonEncoder)
104104
}
105105
}
106106

0 commit comments

Comments
 (0)