9 ms·
Agree, this knowledge is unnecessary. The first thing I did was use curl to check if it's a client or server problem. Then I looked at the code and immediatel
by Seb-C 5y ago
Agree, this knowledge is unnecessary.
The first thing I did was use curl to check if it's a client or server problem.
Then I looked at the code and immediately noticed the unnecessary flush call, the unnecessary loading of the whole file in memory and the unnecessary fs.stats.