Skip to content

Commit

Permalink
fix: context fallback (#159)
Browse files Browse the repository at this point in the history
  • Loading branch information
kwasniew authored Dec 20, 2023
1 parent f46a759 commit 9868698
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@unleash/proxy",
"version": "1.0.0",
"version": "1.0.1",
"description": "The Unleash Proxy (Open-Source)",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/context-middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const GET = 'GET';
export const createContexMiddleware: Function =
(contextEnrichers: ContextEnricher[]) =>
async (req: Request, res: Response, next: NextFunction) => {
let context;
let context: any = {};
if (req.method === GET) {
context = req.query || {};
} else if (req.method === POST) {
Expand Down

0 comments on commit 9868698

Please sign in to comment.