gotcha icon indicating copy to clipboard operation
gotcha copied to clipboard

3xx Response Body is being dropped

Open jhunt opened this issue 6 years ago • 1 comments

(Note: this is conjecture, in need of steps to reproduce)

It appears that when gotcha is returning redirects to the front-end (vs. following them itself), it drops the response body. This caused a bit of confusing when we were using gotcha to introspect an API that was including object JSON in its 302 responses.

Figure out how to reproduce, verify, and fix.

jhunt avatar May 10 '18 19:05 jhunt

Turns out the code we were exercising was following redirects, and we were seeing the body of the redirect destination. See if we can build a small API that does a 30x with a payload, and see what it looks like for Gotcha.

jhunt avatar May 10 '18 20:05 jhunt