Skip to content

Commit

Permalink
fix: remove improper use of map when getting headers
Browse files Browse the repository at this point in the history
Signed-off-by: Guillaume Deslandes <[email protected]>
  • Loading branch information
guillaumedeslandes committed Sep 28, 2020
1 parent 593690d commit 8f15b7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addon/uploaders/uploader.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export default EmberObject.extend(Evented, {
const headers = {};
xhr
.getAllResponseHeaders().trim().split(/[\r\n]+/)
.map((header) => {
.forEach((header) => {
const [key, value] = header.split(': ');
headers[key] = value;
}),
Expand Down

0 comments on commit 8f15b7a

Please sign in to comment.