Skip to content

Commit

Permalink
fix: private lock check
Browse files Browse the repository at this point in the history
  • Loading branch information
Zamralik committed May 13, 2024
1 parent 6f3ec8d commit bb1408d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/architectura/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vitruvius-labs/architectura",
"version": "0.8.3",
"version": "0.8.4",
"description": "A light weight strongly typed Node.JS framework providing isolated context for each request.",
"author": {
"name": "VitruviusLabs"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class RichServerResponse extends HTTPServerResponse<RichClientRequest>
if (isNumber(parameters))
{
this.statusCode = parameters;
this.setCookieHeader();
this.processCookieHeader();
await this.writePayload();

return;
Expand All @@ -86,7 +86,7 @@ class RichServerResponse extends HTTPServerResponse<RichClientRequest>
this.processCookies(parameters);
this.processContentType(parameters);
this.processPayload(parameters);
this.setCookieHeader();
this.processCookieHeader();
await this.writePayload();
}

Expand Down Expand Up @@ -337,10 +337,8 @@ class RichServerResponse extends HTTPServerResponse<RichClientRequest>
this.content = JSONUtility.Encode(parameters.payload);
}

private setCookieHeader(): void
private processCookieHeader(): void
{
this.assertUnlocked();

if (this.cookies.size === 0)
{
return;
Expand Down

0 comments on commit bb1408d

Please sign in to comment.