title: Image downloaded with node is 209 bytes but the image is accessible in chrome
body: <p>I am downloading images through node. For the most part this is working correctly, however some images are being saved with <code>209 bytes</code>. But when viewing these images directly in Chrome the <a href="http://www.sothebys.com/content/dam/stb/lots/GE1/GE1401/216GE1401_7BVQX_SCENE.jpg" rel="nofollow noreferrer">images</a> open perfectly normally.</p>
  
  <h1>Headers</h1>
  
  <pre><code>headers:
  connection: "close"
  content-length: "209"
  content-type: "text/html"
  date: "Thu, 14 Mar 2019 00:03:39 GMT"
  expires: "Thu, 14 Mar 2019 00:03:39 GMT"
  mime-version: "1.0"
  </code></pre>
  
  <h1>Status</h1>
  
  <pre><code>statusCode: 400
  statusMessage: "Bad Request"
  </code></pre>
  
  <h1>Code Used</h1>
  
  <pre><code>const download = async function(uri, filename){
    return new Promise((resolve, reject) =&gt; {
      request.head(uri, function(err, res) {
        if (res) {          
          request(uri).pipe(fs.createWriteStream(filename)).on('close', resolve);
        } else {
          reject(uri);
        }
      });
    })
  };
  
  const downloadImages = async function (dirName, images){
      if (await !fs.existsSync(dirName)){
        await fs.mkdirSync(dirName);
      }
      await asyncForEach(JSON.parse(images), async (image, index) =&gt; {
        const fileName = `${dirName}/${index}.jpg`;
        try {
          await readFile(fileName)
        }
        catch (err){
          if(err) {
            try {
              await download(image, fileName);
            } catch (error) {
              console.error(error);
            }
          }
        }
      })
  }
  </code></pre>