You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The token obtained from the header belongs to someone else.
**Expected behavior**
A clear and concise description of what you expected to happen.
**Screenshots**
If applicable, add screenshots to help explain your problem.
**Environments (please complete the following information):**
- OS: [e.g. Linux]
- go-zero version [e.g. 1.2.1]
- goctl version [e.g. 1.2.1, optional]
**More description**
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior, if applicable:
The code is
func (m *OplogMiddleware) Handle(next http.HandlerFunc) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
body := ""
if r.Method == http.MethodPost {
bf := bytes.NewBuffer(nil)
wt := bufio.NewWriter(bf)
io.Copy(wt, r.Body)
rb, _ := io.ReadAll(bf)
r.Body = io.NopCloser(bytes.NewBuffer(rb))
body = string(rb)
}
}
The token obtained from the header belongs to someone else.
The text was updated successfully, but these errors were encountered: