title: Getting "Error 321:ERR_INVALID_CHUNKED_ENCODING" when trying to open PDF in Chrome
body: <p>I has written the REST web service to download the PDF file from the server and sends the response as content-type=application/pdf to the browser.Below is the REST service url ,which we are calling to download PDF file from the server is throwing "Error 321:ERR_INVALID_CHUNKED_ENCODING" when opening the PDF file in the browser</p>
  
  <pre><code>Window.open("https://www.somedomain.com/appservice/resource/pdf")
  </code></pre>
  
  <p>The same web service, if we are calling with out using SSL(using http) and using ip ,port  ,is working good.Below is the REST service Url,which displays the PDF file correctely. </p>
  
  <pre><code>Window.open("http://ip:port/appservice/resource/pdf")
  </code></pre>
  
  <p>For downloading the images from server ,Both the services (Http and Https) are working good,Only with the PDF files , I am getting this issue...</p>
  
  <p>Is this issue is because of SSL configuration ? If so how it is working for Image?
  Please let me know ,how to fix this.. </p>