Howto open PDF files in same browser window?

Do the problem files have the HTTP header
Content-Type application/pdf
or only the “.pdf” file extension?