supabase-community / supabase-csharp

A C# Client library for Supabase
https://github.com/supabase-community/supabase-csharp/wiki
MIT License
499 stars 50 forks source link

chore: Add custom headers from options in Client.cs #168

Closed Pjort closed 4 months ago

Pjort commented 4 months ago

What kind of change does this PR introduce?

Feature: Adds the possibility own headers via the options.Headers

What is the current behavior?

https://github.com/supabase-community/supabase-csharp/issues/167

What is the new behavior?

It takes the custom headers from options.Headers, but this will overwrite any existing headers with the same key, not sure if that's the desired behavior

Pjort commented 4 months ago

My bad, I must have forgotten to test run it, and didn't realise it was netstandard2.0. I made a fix https://github.com/supabase-community/supabase-csharp/pull/168/commits/037d7de98e4d46111527e9cca3eaa3c96c3356c1

acupofjose commented 4 months ago

Nice - appreciate you taking a look! I'll merge it in and adjust some comments. Should be available in the next release.