storage-go icon indicating copy to clipboard operation
storage-go copied to clipboard

Fix to handle concurrent requests correctly

Open lologarithm opened this issue 5 months ago • 1 comments

What kind of change does this PR introduce?

Copies headers from the transport instead of using them directly. This still probably isn't the "best" solution (we don't need a custom transport for this) but at least its threadsafe now.

What is the current behavior?

I was hitting this issue in my own code when trying to upload multiple files concurrently.

Someone reported it here: https://github.com/supabase-community/storage-go/issues/27

What is the new behavior?

It no longer crashes.

Additional context

N/A

lologarithm avatar Jun 22 '25 04:06 lologarithm

Are there any maintainers active?

lologarithm avatar Jul 03 '25 02:07 lologarithm