Use Header.Set() to override the existing header value (#1032)
Header.Add() appends string if there are same header key exists. Use Header.Set() to prevent this.
This commit is contained in:
+1
-1
@@ -401,7 +401,7 @@ func ReplayRequest(routerUrl string, request *redisCache.Request) ([]string, err
|
||||
}
|
||||
}
|
||||
|
||||
req.Header.Add("X-Fission-Replayed", "true")
|
||||
req.Header.Set("X-Fission-Replayed", "true")
|
||||
resp, err := client.Do(req)
|
||||
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user