Skip to content

Commit

Permalink
fix: file names with multiple slashes
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinechalifour committed Aug 15, 2019
1 parent 259035d commit dcfee50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/infrastructure/repository/ResponseRepositoryFile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export class ResponseRepositoryFile implements ResponseRepository {
}

private getFileName(request: Request) {
const sanitizedUrl = request.url.replace(/\//, '_');
const sanitizedUrl = request.url.replace(/\//g, '_');
return `${request.method}-${sanitizedUrl}-${request.getComputedId()}`;
}

Expand Down

0 comments on commit dcfee50

Please sign in to comment.