I'll try the code above and PR it if it works (which it will, I'm guessing) but I'm trying to understand how the Location header could ever be an array. Can it be?