OAuth2 stuff
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2021-10-18 12:48:16 -05:00
parent a1d04d652e
commit 3efbfecf9d
14 changed files with 397 additions and 94 deletions

View File

@@ -108,6 +108,7 @@ export class Request extends ScopedContainer implements DataContainer {
protected serverResponse: ServerResponse,
) {
super(Container.getContainer())
this.registerSingletonInstance(Request, this)
this.secure = Boolean((clientRequest.connection as TLSSocket).encrypted)
@@ -124,12 +125,6 @@ export class Request extends ScopedContainer implements DataContainer {
minor: clientRequest.httpVersionMinor,
}
this.register(Request)
this.instances.push({
key: Request,
value: this,
})
const parts = url.parse(this.url, true)
this.path = parts.pathname ?? '/'