title: HTTP Header Mime Type in Websphere Application Server 7
body: <p>I have a Spring Web Application where a user can download PDF and Excel Files. I set the HTTP header for both of them: </p>
  
  <pre><code>    HttpHeaders responseHeaders = new HttpHeaders();
      responseHeaders.setContentType(MediaType.parseMediaType("application/vnd.ms-excel"));
      responseHeaders.setContentLength(fileSize);
      responseHeaders.set("Content-Disposition", "attachment");
      responseHeaders.add("Content-Disposition", "filename=\"" + encodedFileName + '\"');
  </code></pre>
  
  <p>This works fine on Tomcat (the HTTP response is of mime type application/vnd.ms-excel).
  But on Websphere 7, the server always return content type: text/html for this request.</p>
  
  <p><em>I have already registered the excel content type in the web sphere virtual host, but this does not change anything.</em></p>
  
  <p><strong>What did I missed?</strong></p>