Skip to content

best way to save what you love

api/istream: flip priority of header sources

dumbmoron7c39b104359a
diff --git a/src/core/api.js b/src/core/api.js
index d822136f..c90f78f7 100644
--- a/src/core/api.js
+++ b/src/core/api.js
@@ -196,8 +196,8 @@ export function runAPI(express, app, gitCommit, gitBranch, __dirname) {
}
streamInfo.headers = {
- ...req.headers,
- ...streamInfo.headers
+ ...streamInfo.headers,
+ ...req.headers
};
return stream(res, { type: 'internal', ...streamInfo });