File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ class ClientIO extends ClientBase with ClientMixin {
43
43
'x-sdk-platform': '{{ sdk .platform }}',
44
44
'x-sdk-language': '{{ language .name | caseLower }}',
45
45
'x-sdk-version': '{{ sdk .version }}',
46
- 'user-agent' : '{{spec .title | caseUcfirst }}{{ language .name | caseUcfirst }}SDK/{{ sdk .version }} (${Platform.operatingSystem}; ${Platform.operatingSystemVersion})',
46
+ 'user-agent' : '{{spec .title | caseUcfirst }}{{ language .name | caseUcfirst }}SDK/{{ sdk .version }} (${Platform.operatingSystem}; ${Uri.encodeFull( Platform.operatingSystemVersion) })',
47
47
{% for key ,header in spec .global .defaultHeaders %}
48
48
'{{key }}' : '{{header }}',
49
49
{% endfor %}
@@ -85,7 +85,7 @@ class ClientIO extends ClientBase with ClientMixin {
85
85
86
86
@override
87
87
ClientIO addHeader(String key, String value) {
88
- _headers![key] = value;
88
+ _headers![key] = Uri.encodeFull( value) ;
89
89
return this;
90
90
}
91
91
Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ class ClientIO extends ClientBase with ClientMixin {
125
125
126
126
@override
127
127
ClientIO addHeader(String key, String value) {
128
- _headers![key] = value;
128
+ _headers![key] = Uri.encodeFull( value) ;
129
129
130
130
return this;
131
131
}
You can’t perform that action at this time.
0 commit comments