bff config to nacos
This commit is contained in:
@@ -3,7 +3,6 @@ package response
|
||||
import (
|
||||
"bytes"
|
||||
"encoding/json"
|
||||
"log"
|
||||
"net/http"
|
||||
"strings"
|
||||
|
||||
@@ -35,7 +34,6 @@ func Wrap(next http.HandlerFunc) http.HandlerFunc {
|
||||
return func(w http.ResponseWriter, r *http.Request) {
|
||||
bw := &bodyWriter{ResponseWriter: w, status: http.StatusOK}
|
||||
next(bw, r)
|
||||
log.Printf("raw json: %s", bw.status)
|
||||
ctrl := BaseController{}
|
||||
if bw.status != http.StatusOK {
|
||||
ctrl.Error(w, mapHTTPError(bw.status, bw.buf.String()))
|
||||
|
||||
Reference in New Issue
Block a user