ggrossetie / unxhr

Synchronous and asynchronous XMLHttpRequest for Node
MIT License
0 stars 3 forks source link

On Windows the command line cannot be too long :( #11

Closed ggrossetie closed 4 years ago

ggrossetie commented 4 years ago

Otherwise we get the following error:

reason: spawnSync C:\windows\system32\cmd.exe ENAMETOOLONG

We might need to write the data to the disk (instead of passing them to the command line) when we are running on Windows. The file should then be removed as soon as the request.js script read the file (or if an exception occurs).

For performance reason, I think that we should still pass the data as command-line argument rather than writing them to the disk when possible.