File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
Supabase/src/commonMain/kotlin/io/github/jan/supabase Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ enum class PlatformTarget {
1212
1313data class OSInformation (
1414 val name : String ,
15- val version : String
15+ val version : String?
1616) {
1717
1818 companion object {
Original file line number Diff line number Diff line change @@ -115,7 +115,10 @@ class KtorSupabaseHttpClient @SupabaseInternal constructor(
115115 append(" X-Client-Info" , " supabase-kt/${BuildConfig .PROJECT_VERSION } " )
116116 osInformation?.let {
117117 append(" X-Supabase-Client-Platform" , it.name)
118- append(" X-Supabase-Client-Platform-Version" , it.version)
118+
119+ it.version?.let { version ->
120+ append(" X-Supabase-Client-Platform-Version" , version)
121+ }
119122 }
120123 }
121124 port = HTTPS_PORT
You can’t perform that action at this time.
0 commit comments