fix: kubo in AgentVersion
Marcin Rataj committed
Jul 6, 2022 at 20:39 UTC
4c965fc60366cd85236adcfbca890f06bdd0dec9
3 files changed
+5
-5
test/sharness/t0026-id.sh
+1
-1
@@ -16,7 +16,7 @@ test_id_compute_agent() {
16
else
17
AGENT_COMMIT="${AGENT_COMMIT##$AGENT_VERSION-}"
18
fi
19
- AGENT_VERSION="go-ipfs/$AGENT_VERSION/$AGENT_COMMIT"
19
+ AGENT_VERSION="kubo/$AGENT_VERSION/$AGENT_COMMIT"
20
if test -n "$AGENT_SUFFIX"; then
21
if test -n "$AGENT_COMMIT"; then
22
AGENT_VERSION="$AGENT_VERSION/"
test/sharness/t0230-channel-streaming-http-content-type.sh
+2
-2
@@ -24,7 +24,7 @@ test_ls_cmd() {
24
printf "Access-Control-Allow-Headers: X-Stream-Output, X-Chunked-Output, X-Content-Length\r\n" >>expected_output &&
25
printf "Access-Control-Expose-Headers: X-Stream-Output, X-Chunked-Output, X-Content-Length\r\n" >>expected_output &&
26
printf "Content-Type: text/plain\r\n" >>expected_output &&
27
- printf "Server: go-ipfs/%s\r\n" $(ipfs version -n) >>expected_output &&
27
+ printf "Server: kubo/%s\r\n" $(ipfs version -n) >>expected_output &&
28
printf "Trailer: X-Stream-Error\r\n" >>expected_output &&
29
printf "Vary: Origin\r\n" >>expected_output &&
30
printf "X-Chunked-Output: 1\r\n" >>expected_output &&
@@ -47,7 +47,7 @@ test_ls_cmd() {
47
printf "Access-Control-Allow-Headers: X-Stream-Output, X-Chunked-Output, X-Content-Length\r\n" >>expected_output &&
48
printf "Access-Control-Expose-Headers: X-Stream-Output, X-Chunked-Output, X-Content-Length\r\n" >>expected_output &&
49
printf "Content-Type: application/json\r\n" >>expected_output &&
50
- printf "Server: go-ipfs/%s\r\n" $(ipfs version -n) >>expected_output &&
50
+ printf "Server: kubo/%s\r\n" $(ipfs version -n) >>expected_output &&
51
printf "Trailer: X-Stream-Error\r\n" >>expected_output &&
52
printf "Vary: Origin\r\n" >>expected_output &&
53
printf "X-Chunked-Output: 1\r\n" >>expected_output &&
version.go
+2
-2
@@ -13,13 +13,13 @@ var CurrentCommit string
13
// CurrentVersionNumber is the current application's version literal
14
const CurrentVersionNumber = "0.14.0-dev"
15
16
-const ApiVersion = "/go-ipfs/" + CurrentVersionNumber + "/"
16
+const ApiVersion = "/kubo/" + CurrentVersionNumber + "/"
17
18
// GetUserAgentVersion is the libp2p user agent used by go-ipfs.
19
//
20
// Note: This will end in `/` when no commit is available. This is expected.
21
func GetUserAgentVersion() string {
22
- userAgent := "go-ipfs/" + CurrentVersionNumber + "/" + CurrentCommit
22
+ userAgent := "kubo/" + CurrentVersionNumber + "/" + CurrentCommit
23
if userAgentSuffix != "" {
24
if CurrentCommit != "" {
25
userAgent += "/"