moby/dockerversion
Sebastiaan van Stijn ed376a603f
dockerversion: remove insertUpstreamUserAgent()
It was not really "inserting" anything, just formatting and appending.
Simplify this by changing this in to a `getUpstreamUserAgent()` function
which returns the upstream User-Agent (if any) into a `UpstreamClient()`.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit 9a1f2e6d7c)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2023-06-02 11:41:09 +02:00
..
useragent.go dockerversion: remove insertUpstreamUserAgent() 2023-06-02 11:41:09 +02:00
useragent_test.go dockerversion: add a basic unit-test 2023-06-02 11:41:09 +02:00
version_lib.go IAmStatic not used anymore 2023-01-01 18:03:02 +01:00