configuration to ignore 302 redirects

I didn't want to put that into master just by myself.

A little code-review would be nice.