1. Bitbucket
  2. Public Issue Tracker
  3. master
  4. Issues

Issues

Issue #4936 open

HTTP Content-Type is always text/plain (BB-6154)

Dillon
created an issue

It would seem that downloading any file from a repository causes the HTTP response header to contain the same content-type: text/plain

For example:

curl -i -u thedillonb https://api.bitbucket.org/1.0/repositories/thedillonb/bitbucketbrowser/raw/master/BitbucketBrowser/Images/Dropbar.png

Results in:

Content-Type: text/plain; charset=utf-8

Which is incorrect since the png is not text...

Comments (5)

  1. tcasstevens

    On my bitbucket hosted web site, I have downloadable files. One is a .dmg file. When users download that file with Safari, Safari automatically adds a .txt extension. This is not desired.

    https://support.apple.com/kb/TA24293?locale=en_US "Safari might add these extensions based on information received from the website about the file type. If file type sent by the server does not match the extension, Safari may append an extension to ensure the file is recognized by the Finder."

  2. Log in to comment