🎨 Fix typos
This commit is contained in:
parent
a3bff814ef
commit
14e73367c6
2 changed files with 3 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
|||
import * as http from 'http';
|
||||
|
||||
/** Too avoid */
|
||||
/** Too avoid overloading the server, do not allow large files (> 100 MB) to be handled in memory. */
|
||||
const MAX_MEMORY_SIZE = 100 * 1024 * 1024;
|
||||
|
||||
export default function handleResponse(
|
||||
|
@ -34,7 +34,7 @@ export default function handleResponse(
|
|||
chunkList.push(chunk);
|
||||
});
|
||||
|
||||
//If we finished reading response, check for correctness and return it
|
||||
//If we finished reading response, check for correctness, then return it
|
||||
response.on('end', () => {
|
||||
//Check that length is correct
|
||||
if (totalLength !== headerLength) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue