We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent abed4fd commit 049b153Copy full SHA for 049b153
1 file changed
lib/Server.js
@@ -1964,12 +1964,9 @@ class Server {
1964
(req, res) => {
1965
res.setHeader("Content-Type", "application/javascript");
1966
1967
- const { createReadStream } = fs;
1968
const clientPath = path.join(__dirname, "..", "client");
1969
1970
- createReadStream(
1971
- path.join(clientPath, "modules/sockjs-client/index.js")
1972
- ).pipe(res);
+ res.sendFile(path.join(clientPath, "modules/sockjs-client/index.js"));
1973
}
1974
);
1975
0 commit comments