Fixed code to only set redirect option on GETs (otherwise errors)