@danhachuel/thunderbolt 0.2.93 → 0.2.94

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/scripts/cli.mjs +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danhachuel/thunderbolt",
3
- "version": "0.2.93",
3
+ "version": "0.2.94",
4
4
  "description": "Thunderbolt — interface local para operação de canais faceless e motor MoneyPrinterTurbo",
5
5
  "license": "MIT",
6
6
  "main": "scripts/cli.mjs",
package/scripts/cli.mjs CHANGED
@@ -188,8 +188,8 @@ proxy.on("upgrade", (request, clientSocket, head) => {
188
188
  const upstreamSocket = net.connect(backendPort, "127.0.0.1", () => {
189
189
  const headers = Object.entries(request.headers)
190
190
  .map(([name, value]) => `${name}: ${Array.isArray(value) ? value.join(", ") : value}`)
191
- .join("\\r\\n");
192
- upstreamSocket.write(`GET ${request.url} HTTP/1.1\\r\\n${headers}\\r\\n\\r\\n`);
191
+ .join("\r\n");
192
+ upstreamSocket.write(`GET ${request.url} HTTP/1.1\r\n${headers}\r\n\r\n`);
193
193
  if (head.length) upstreamSocket.write(head);
194
194
  clientSocket.pipe(upstreamSocket).pipe(clientSocket);
195
195
  });