From 968c113d3a7282d5fd04c89b218700705adf9354 Mon Sep 17 00:00:00 2001 From: Marcin Rataj Date: Wed, 6 Jul 2022 20:39:44 +0200 Subject: [PATCH] fix: kubo in AgentVersion --- test/sharness/t0026-id.sh | 2 +- test/sharness/t0230-channel-streaming-http-content-type.sh | 4 ++-- version.go | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/test/sharness/t0026-id.sh b/test/sharness/t0026-id.sh index 6f37120e0598..e8ae7a60cd82 100755 --- a/test/sharness/t0026-id.sh +++ b/test/sharness/t0026-id.sh @@ -16,7 +16,7 @@ test_id_compute_agent() { else AGENT_COMMIT="${AGENT_COMMIT##$AGENT_VERSION-}" fi - AGENT_VERSION="go-ipfs/$AGENT_VERSION/$AGENT_COMMIT" + AGENT_VERSION="kubo/$AGENT_VERSION/$AGENT_COMMIT" if test -n "$AGENT_SUFFIX"; then if test -n "$AGENT_COMMIT"; then AGENT_VERSION="$AGENT_VERSION/" diff --git a/test/sharness/t0230-channel-streaming-http-content-type.sh b/test/sharness/t0230-channel-streaming-http-content-type.sh index 34ef57771fb6..be23d8151c0a 100755 --- a/test/sharness/t0230-channel-streaming-http-content-type.sh +++ b/test/sharness/t0230-channel-streaming-http-content-type.sh @@ -24,7 +24,7 @@ test_ls_cmd() { printf "Access-Control-Allow-Headers: X-Stream-Output, X-Chunked-Output, X-Content-Length\r\n" >>expected_output && printf "Access-Control-Expose-Headers: X-Stream-Output, X-Chunked-Output, X-Content-Length\r\n" >>expected_output && printf "Content-Type: text/plain\r\n" >>expected_output && - printf "Server: go-ipfs/%s\r\n" $(ipfs version -n) >>expected_output && + printf "Server: kubo/%s\r\n" $(ipfs version -n) >>expected_output && printf "Trailer: X-Stream-Error\r\n" >>expected_output && printf "Vary: Origin\r\n" >>expected_output && printf "X-Chunked-Output: 1\r\n" >>expected_output && @@ -47,7 +47,7 @@ test_ls_cmd() { printf "Access-Control-Allow-Headers: X-Stream-Output, X-Chunked-Output, X-Content-Length\r\n" >>expected_output && printf "Access-Control-Expose-Headers: X-Stream-Output, X-Chunked-Output, X-Content-Length\r\n" >>expected_output && printf "Content-Type: application/json\r\n" >>expected_output && - printf "Server: go-ipfs/%s\r\n" $(ipfs version -n) >>expected_output && + printf "Server: kubo/%s\r\n" $(ipfs version -n) >>expected_output && printf "Trailer: X-Stream-Error\r\n" >>expected_output && printf "Vary: Origin\r\n" >>expected_output && printf "X-Chunked-Output: 1\r\n" >>expected_output && diff --git a/version.go b/version.go index 4ddc0485e98b..f9acc120fe60 100644 --- a/version.go +++ b/version.go @@ -13,13 +13,13 @@ var CurrentCommit string // CurrentVersionNumber is the current application's version literal const CurrentVersionNumber = "0.14.0-dev" -const ApiVersion = "/go-ipfs/" + CurrentVersionNumber + "/" +const ApiVersion = "/kubo/" + CurrentVersionNumber + "/" // GetUserAgentVersion is the libp2p user agent used by go-ipfs. // // Note: This will end in `/` when no commit is available. This is expected. func GetUserAgentVersion() string { - userAgent := "go-ipfs/" + CurrentVersionNumber + "/" + CurrentCommit + userAgent := "kubo/" + CurrentVersionNumber + "/" + CurrentCommit if userAgentSuffix != "" { if CurrentCommit != "" { userAgent += "/"