insomnia-mockbin icon indicating copy to clipboard operation
insomnia-mockbin copied to clipboard

support infinite redirect loop.

Open eerne opened this issue 9 years ago • 3 comments

I would like to test agains an infinite redirect loop.

eerne avatar May 29 '15 08:05 eerne

currently the live version supports up to 100 redirects, we could increase the number in future releases, however, this should be enough to test any client logic? would you mind expanding on the use-case here that would require you to test against more than 100 redirects?

furthermore, you can get the project running locally and remove the limit if you wish.

ahmadnassri avatar May 29 '15 09:05 ahmadnassri

My script detects if the referrer is equal to the redirect location or known redirects. Otherwise it is supposed to follow the redirect. Therefore just increasing the number of redirects does not let me test if it is a real redirect loop.

eerne avatar Jun 03 '15 06:06 eerne

I see now ... I'll add this to the next release.

ahmadnassri avatar Jun 03 '15 16:06 ahmadnassri