Skip to content

Commit

Permalink
Fix mini-browser-endpoint missing resource response
Browse files Browse the repository at this point in the history
Signed-off-by: Doron Nahari <doron.nahari@sap.com>
  • Loading branch information
DoroNahari authored and amiramw committed Dec 16, 2020
1 parent 5511152 commit 8385768
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/mini-browser/src/node/mini-browser-endpoint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ export class MiniBrowserEndpoint implements BackendApplicationContribution, Mini
protected missingResourceHandler(): (uri: string, response: Response) => MaybePromise<Response> {
return async (uri: string, response: Response) => {
this.logger.error(`Cannot handle missing resource. URI: ${uri}.`);
return response.send();
return response.sendStatus(404);
};
}

Expand Down

0 comments on commit 8385768

Please sign in to comment.