rackspace/python-cloudfiles — Issue #58: Add support for custom headers
Author: asavoy
Created: 2011-11-28 07:33:45+00:00
State: open

Hi,

We're having issues with not being able to specify custom headers for objects on Rackspace CloudFiles.

We need this because: to get webfonts to work under Firefox, when they are being served from a CDN (that is, a different domain to your primary domain), the Access-Control-Allow-Origin header must be set correctly.

Currently python-cloudfiles provides a metadata dict, which looks like the right mechanism, but then it adds a 'X-Object-Meta' prefix, which is not helpful.

Refer to this Rackspace blog post, which lists other similar custom headers: http://www.rackspace.com/cloud/blog/2011/05/11/thanks-for-your-feedback-cloud-files-supports-12-new-headers/

I see that code in pull request #37 already implements this, but it was rejected, I think on the basis of code quality.