Spaces:
Running
Running
Update index.js
Browse files
index.js
CHANGED
@@ -2,6 +2,7 @@ const express = require("express");
|
|
2 |
const { chromium: origChromium } = require("playwright");
|
3 |
const axios = require("axios")
|
4 |
const Form = require("form-data")
|
|
|
5 |
|
6 |
const app = express();
|
7 |
app.use(express.json({ limit: "5mb" }));
|
@@ -75,6 +76,11 @@ app.post("/", async (req, res) => {
|
|
75 |
}
|
76 |
});
|
77 |
|
78 |
-
|
79 |
-
|
|
|
|
|
|
|
|
|
|
|
80 |
});
|
|
|
2 |
const { chromium: origChromium } = require("playwright");
|
3 |
const axios = require("axios")
|
4 |
const Form = require("form-data")
|
5 |
+
const http = require('http');
|
6 |
|
7 |
const app = express();
|
8 |
app.use(express.json({ limit: "5mb" }));
|
|
|
76 |
}
|
77 |
});
|
78 |
|
79 |
+
const port = 3000
|
80 |
+
const server = http.createServer({
|
81 |
+
maxHeaderSize: 64 * 1024
|
82 |
+
}, app);
|
83 |
+
|
84 |
+
server.listen(PORT, () => {
|
85 |
+
console.log(`Server running on port ${PORT}`);
|
86 |
});
|