Skip to content

Commit a2b38f3

Browse files
committed
Add prefix 'aws' to user agent string to signify that the ECS CLI is an AWS managed project client
1 parent 28cbbd7 commit a2b38f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ecs-cli/modules/clients/user_agent.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func CustomUserAgentHandler() request.NamedHandler {
3030
Fn: func(r *request.Request) {
3131
currentAgent := r.HTTPRequest.Header.Get(UserAgentHeader)
3232
r.HTTPRequest.Header.Set(UserAgentHeader,
33-
fmt.Sprintf("%s/%s (%s) %s", version.AppName, version.Version, runtime.GOOS, currentAgent))
33+
fmt.Sprintf("aws-%s/%s (%s) %s", version.AppName, version.Version, runtime.GOOS, currentAgent))
3434
},
3535
}
3636
}

0 commit comments

Comments
 (0)