title: Application/pdf data starts download instead of viewing it
body: <p>I have web-application. 
  When I follow a link:
  http://..... document/view?type=pdf
  I expect browser to show a pdf file. It works correct on Firefox and IE, but Chrome starts downloading it instead of showing.</p>
  
  <p>Here is the code: </p>
  
  <pre><code>response.setContentType("application/pdf");
  response.setHeader("Content-Disposition", "inline; filename=test;");
  OutputStream out = response.getOutputStream();
  out.write(pdfByteData);
  out.flush();
  </code></pre>
  
  <p>What could be the problem? May be it is because of my local chrome settings or something else? I have no idea.</p>