Open MAST1999 opened 5 months ago
Just as a random question, do you think this would also fix #5?
Just as a random question, do you think this would also fix #5?
Hmm, depends on how the Response.json is implemented.
@KaydaFox you can copy the changes I've made to your app and see if it fixes it.
I also recommend replacing #headers
with headers
to see if it fixes it.
Headers are should be persisted. Before each time we wanted to add a header, it would create a new header object and then discard it when we tried to later add something to it.
It would also return a new header everywhere because calling
request.header
would construct a new one.I'm not sure if this breaks anything else, but from my testing on my app it seems to be working fine.
Fixes: #6