Replying to Avatar Anthony Accioly

https://pkg.go.dev/net/http#ServeContent - this is what you are looking for (it will handle partial byte ranges and all mentioned headers).

but AFAIK, this needs to be done on khatru, because it does not expose the required objects. that's why i involved nostr:npub180cvv07tjdrrgpa0j7j7tmnyl2yr6yr7l8j4s3evf6u64th6gkwsyjh6w6 in the thread.

Reply to this note

Please Login to reply.

Discussion

Try to replace `io.Copy` with `http.ServeContent` and see what happens (you can fork Khatru and use go to replace khatru dependency in Haven, this is how I tested all of the CORS stuff before)

i'll try it tomorrow. thanks a lot!

I thought it was because you liked me.

I DO like you, the bug was just an excuse ;)