File tree Expand file tree Collapse file tree 2 files changed +4
-10
lines changed Expand file tree Collapse file tree 2 files changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -13,13 +13,7 @@ class Api:
13
13
def _headers (cls , custom_headers ) -> dict :
14
14
headers = {
15
15
** custom_headers ,
16
- "User-Agent" : json .dumps (
17
- {
18
- "platform" : Config .platform ,
19
- "python_version" : Config .python_version ,
20
- "sdk_version" : Config .sdk_version ,
21
- }
22
- ),
16
+ "User-Agent" : f"platform/{ Config .platform } python/{ Config .python_version } sdk/{ Config .sdk_version } " ,
23
17
}
24
18
return headers
25
19
Original file line number Diff line number Diff line change @@ -34,9 +34,9 @@ class Config:
34
34
expiration = None
35
35
load_live_schema = True
36
36
37
- platform = ( sysinfo .platform (), )
38
- python_version = ( sysinfo .python_version (), )
39
- sdk_version = ( staxapp .__version__ ,)
37
+ platform = sysinfo .platform ()
38
+ python_version = sysinfo .python_version ()
39
+ sdk_version = staxapp .__version__
40
40
41
41
@classmethod
42
42
def set_config (cls ):
You can’t perform that action at this time.
0 commit comments