diff --git a/packages/binding-http/src/http-server.ts b/packages/binding-http/src/http-server.ts index e697dcdb6..2acad6640 100644 --- a/packages/binding-http/src/http-server.ts +++ b/packages/binding-http/src/http-server.ts @@ -306,7 +306,7 @@ export default class HttpServer implements ProtocolServer { } private addUrlRewriteEndpoints(form: TD.Form, forms: Array): void { - if (this.urlRewrite) { + if (this.urlRewrite != null) { for (const [inUri, toUri] of Object.entries(this.urlRewrite)) { if (form.href.endsWith(toUri)) { const form2: TD.Form = JSON.parse(JSON.stringify(form)); // deep copy