@vandenberghinc/volt 1.2.22 → 1.2.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -771,6 +771,9 @@ class Stream {
771
771
  this.res?.setHeader(key.toLowerCase(), typeof v === "boolean" ? v.toString() : v);
772
772
  }
773
773
  });
774
+ if (this.res_cookies.length > 0) {
775
+ this.res.setHeader("Set-Cookie", this.res_cookies);
776
+ }
774
777
  }
775
778
  /**
776
779
  * Send a response.
@@ -867,6 +867,10 @@ export class Stream {
867
867
  this.res?.setHeader(key.toLowerCase(), typeof v === "boolean" ? v.toString() : v);
868
868
  }
869
869
  });
870
+ // Attach any cookies staged via set_cookie/set_cookies (HTTP/1)
871
+ if (this.res_cookies.length > 0) {
872
+ this.res.setHeader("Set-Cookie", this.res_cookies);
873
+ }
870
874
  }
871
875
  /**
872
876
  * Send a response.
@@ -867,6 +867,10 @@ export class Stream {
867
867
  this.res?.setHeader(key.toLowerCase(), typeof v === "boolean" ? v.toString() : v);
868
868
  }
869
869
  });
870
+ // Attach any cookies staged via set_cookie/set_cookies (HTTP/1)
871
+ if (this.res_cookies.length > 0) {
872
+ this.res.setHeader("Set-Cookie", this.res_cookies);
873
+ }
870
874
  }
871
875
  /**
872
876
  * Send a response.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "author": "Daan van den Bergh",
3
3
  "name": "@vandenberghinc/volt",
4
- "version": "1.2.22",
4
+ "version": "1.2.23",
5
5
  "description": "",
6
6
  "type": "module",
7
7
  "types": "./backend/dist/esm/index.d.ts",