Replies: 2 comments
-
Sounds like you're trying to retain the headers from the original response. But see that you're creating brand new responses in both cases UI/API. You'll need to use a method that either modifies the original response or moves the headers to the new response. Of course, I can't run this code because there's too much application-specific stuff going on. If I'm wrong about what you're trying to do here then see if you can reduce the sample to something I'd be able to run. |
Beta Was this translation helpful? Give feedback.
-
The problem, is not clear how get the original headers. In the impl for ResponseError, it have not access to the request, not way to call the "parent" implementation. |
Beta Was this translation helpful? Give feedback.
-
I need to return different response depending if the server is called as API or the browser. In 3 I do:
But with the change to 4, I don't get the full headers. I get now this (note how this send json without nobody I see changing it):
This is what firefox send:
The code on 4 is:
Beta Was this translation helpful? Give feedback.
All reactions