Handle upper cased endpoints

The location header returns a lower cased hostname so make sure
we match on a case-less endpoint.

Change-Id: I58b53b73d4c4e06b8b3026966cbb72963a0fec9a
Closes-bug: #1308992
Merge "Handle upper cased endpoints"