File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -244,7 +244,7 @@ private void Auth_StateChanged(object sender, AuthState e)
244
244
/// <inheritdoc />
245
245
public Task < BaseResponse > Rpc ( string procedureName , object ? parameters ) =>
246
246
_postgrest . Rpc ( procedureName , parameters ) ;
247
-
247
+
248
248
/// <inheritdoc />
249
249
public Task < TModeledResponse ? > Rpc < TModeledResponse > ( string procedureName , object ? parameters ) =>
250
250
_postgrest . Rpc < TModeledResponse > ( procedureName , parameters ) ;
@@ -272,6 +272,13 @@ internal Dictionary<string, string> GetAuthHeaders()
272
272
headers [ "Authorization" ] = $ "Bearer { bearer } ";
273
273
}
274
274
275
+ // Add custom headers from options
276
+ // This will overwrite any existing headers with the same key, not sure if that's the desired behavior
277
+ foreach ( var ( key , value ) in _options . Headers )
278
+ {
279
+ headers [ key ] = value ;
280
+ }
281
+
275
282
return headers ;
276
283
}
277
284
}
You can’t perform that action at this time.
0 commit comments