owebjs 1.5.1-dev → 1.5.2-dev

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.
@@ -265,10 +265,10 @@ function inner(oweb, route) {
265
265
  }, "corkedOp");
266
266
  corkedOp(() => {
267
267
  res.raw.writeHead(200, {
268
+ ...res.getHeaders(),
268
269
  "Content-Type": "text/event-stream",
269
270
  "Cache-Control": "no-cache",
270
- Connection: "keep-alive",
271
- "Access-Control-Allow-Origin": "*"
271
+ Connection: "keep-alive"
272
272
  });
273
273
  if (res.raw.flushHeaders) {
274
274
  res.raw.flushHeaders();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "owebjs",
3
- "version": "1.5.1-dev",
3
+ "version": "1.5.2-dev",
4
4
  "description": "A flexible and modern web framework built on top of Fastify",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",