Skip to content

Commit a470365

Browse files
committed
SDK-908: Update Yoti SDK Version header value
1 parent 4bc3848 commit a470365

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

yoti_python_sdk/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def __get_request_headers(self, path, http_method, content):
119119
X_YOTI_AUTH_KEY: self.__crypto.get_public_key(),
120120
X_YOTI_AUTH_DIGEST: self.__crypto.sign(request),
121121
X_YOTI_SDK: SDK_IDENTIFIER,
122-
X_YOTI_SDK_VERSION: sdk_version,
122+
X_YOTI_SDK_VERSION: "{0}-{1}".format(SDK_IDENTIFIER, sdk_version),
123123
'Content-Type': JSON_CONTENT_TYPE,
124124
'Accept': JSON_CONTENT_TYPE
125125
}

yoti_python_sdk/tests/test_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def expected_get_headers(x_yoti_auth_key, x_yoti_auth_digest_get):
5050
X_YOTI_AUTH_KEY: x_yoti_auth_key,
5151
X_YOTI_AUTH_DIGEST: x_yoti_auth_digest_get,
5252
X_YOTI_SDK: SDK_IDENTIFIER,
53-
X_YOTI_SDK_VERSION: sdk_version
53+
X_YOTI_SDK_VERSION: "Python-" + sdk_version
5454
}
5555

5656

@@ -62,7 +62,7 @@ def expected_post_headers(x_yoti_auth_key, x_yoti_auth_digest_post):
6262
X_YOTI_AUTH_KEY: x_yoti_auth_key,
6363
X_YOTI_AUTH_DIGEST: x_yoti_auth_digest_post,
6464
X_YOTI_SDK: SDK_IDENTIFIER,
65-
X_YOTI_SDK_VERSION: sdk_version,
65+
X_YOTI_SDK_VERSION: "Python-" + sdk_version,
6666
'Content-Type': JSON_CONTENT_TYPE,
6767
'Accept': JSON_CONTENT_TYPE
6868
}

0 commit comments

Comments
 (0)