You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/06/23 01:38:06 UTC

[GitHub] [apisix] zuiyangqingzhou commented on issue #4460: bug: The request-id plugin may have a bug

zuiyangqingzhou commented on issue #4460:
URL: https://github.com/apache/apisix/issues/4460#issuecomment-866454652


   This is the upstream logic, it just gets the header passed from apisix
   ```
    package main
   
    import (
        "fmt"
        "log"
        "net/http"
    )
    func HelloServer(w http.ResponseWriter, req *http.Request) {
        _, _ = fmt.Fprintln(w,"Header全部数据:",req.Header)
    }
   
    func main() {
        http.HandleFunc("/hello", HelloServer)
        err := http.ListenAndServe(":9999", nil)
        if err != nil {
            log.Fatal("ListenAndServe: ", err)
        }
    }
   ```
   You may not understand what I mean. What I mean is that the request-id passed by apisix to upstream is different from the request-id it returns to curl. Shouldn't this be a bug? I have a picture above you can look at it


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org