Skip to content

Commit

Permalink
Fixing failed rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
mishok13 committed Nov 16, 2017
1 parent e74da68 commit 6435308
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/http-server.ts
Expand Up @@ -77,13 +77,13 @@ export class HttpServer {
const error = `Trying to register url: ${url} with the same HttpMethod (${service.method}) twice`;
this.logger.fatal(error);
throw new Error(error);
this.logger.info(`Registering HTTP handler: ${service.method || method} ${url}`);
this.registeredUrls[url] = service.method;

this.server[method](url, (request: Request, response: Response) => {
this.handleRequest(service, request, response);
});
}
this.logger.info(`Registering HTTP handler: ${service.method || method} ${url}`);
this.registeredUrls[url] = service.method;

this.server[method](url, (request: Request, response: Response) => {
this.handleRequest(service, request, response);
});
}

// Starts the http server
Expand Down

0 comments on commit 6435308

Please sign in to comment.