Skip to content

Commit f4bfc2a

Browse files
author
Ido Shamun
authored
fix: delete headers instead of setting to null (#12)
When setting the headers to null they will later on be sent as "null" which messes the machine to machine auth.
1 parent a773c73 commit f4bfc2a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

helm/values/prod.yaml.enc

0 Bytes
Binary file not shown.

src/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ app.use((ctx, next) => {
4646
service: true,
4747
};
4848
} else {
49-
ctx.request.headers['user-id'] = null;
50-
ctx.request.headers['logged-in'] = null;
49+
delete ctx.request.headers['user-id'];
50+
delete ctx.request.headers['logged-in'];
5151
}
5252
return next();
5353
});

0 commit comments

Comments
 (0)