diff --git a/packages/binding-http/src/http-server.ts b/packages/binding-http/src/http-server.ts index e5f9a4dea..c1730b44d 100644 --- a/packages/binding-http/src/http-server.ts +++ b/packages/binding-http/src/http-server.ts @@ -338,12 +338,12 @@ export default class HttpServer implements ProtocolServer { for (const property of properties) { const readOnly: boolean = property.readOnly ?? false; - if (readOnly) { + if (!readOnly) { allReadOnly = false; } const writeOnly: boolean = property.writeOnly ?? false; - if (writeOnly) { + if (!writeOnly) { allWriteOnly = false; } }