Skip to content

Commit

Permalink
make X-Request-URL header case-insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
mruhlin committed Aug 23, 2016
1 parent 03e2ccc commit 65205e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fetch.js
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@
}

// Avoid security warnings on getResponseHeader when not allowed by CORS
if (/^X-Request-URL:/m.test(xhr.getAllResponseHeaders())) {
if (/^X-Request-URL:/mi.test(xhr.getAllResponseHeaders())) {
return xhr.getResponseHeader('X-Request-URL')
}

Expand Down

0 comments on commit 65205e4

Please sign in to comment.