Skip to content

Commit

Permalink
close tikv#4490
Browse files Browse the repository at this point in the history
Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>
  • Loading branch information
CabinfeverB committed Dec 28, 2021
1 parent e904c83 commit ed69b76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/apiutil/apiutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ func ErrorResp(rd *render.Render, w http.ResponseWriter, err error) {
// GetComponentNameOnHTTP returns component name from Request Header
func GetComponentNameOnHTTP(r *http.Request) string {
componentName := r.Header.Get(componentSignatureKey)
if componentName == "" {
if len(componentName) == 0 {
componentName = componentAnonymousValue
}
return componentName
Expand Down

0 comments on commit ed69b76

Please sign in to comment.