Skip to content

Commit

Permalink
bugfix - gh-42
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyanshshah27 committed Feb 23, 2023
1 parent 88691f5 commit e175d67
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions integrations/express/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,9 @@ export function afterMiddleware(keploy: Keploy, req: Request, res: Response) {
return;
}

if (process.env.KEPLOY_MODE=="test") {
return res
}
// req.headers
// Since, JSON.stingify trims spaces. Therefore, content-length of request header should be updated
req.headers["content-length"] = JSON.stringify(
Expand Down

0 comments on commit e175d67

Please sign in to comment.