Fixed the assertion of redirection to handle lowercase headers

A complete implementation should handle it case-insensitively but the
current return value of getResponseHeaders() does not make any assumption
on the case, thus making it harder.