We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc058e7 commit 8a0c25dCopy full SHA for 8a0c25d
packages/supabase/lib/src/constants.dart
@@ -14,8 +14,10 @@ class Constants {
14
15
static final Map<String, String> defaultHeaders = {
16
'X-Client-Info': 'supabase-dart/$version',
17
- if (platform != null) 'X-Supabase-Client-Platform': platform!,
+ if (platform != null)
18
+ 'X-Supabase-Client-Platform': Uri.encodeComponent(platform!),
19
if (platformVersion != null)
- 'X-Supabase-Client-Platform-Version': platformVersion!,
20
+ 'X-Supabase-Client-Platform-Version':
21
+ Uri.encodeComponent(platformVersion!),
22
};
23
}
0 commit comments