Code Monkey home page Code Monkey logo

Comments (2)

 avatar commented on July 28, 2024

I too have an issue with this... Has anyone looked into why the content type gets munged?

from cloudfuse.

redbo avatar redbo commented on July 28, 2024

Cloudfuse doesn't set a content-type, so swift (/cloud files) should just choose one based on the file's extension. If you can run cloudfuse with the -d flag and share some of the output, it might help figure out what's going on. Here are the headers from a test I just did, where it gets set correctly:

PUT /v1/MossoCloudFS_8ef18146-7dd3-46ea-9d61-b07a511b0c81/test/somefile.css HTTP/1.1
User-Agent: CloudFuse
Host: storage101.ord1.clouddrive.com
Accept: */*
X-Auth-Token: a6264b3d7fa74b61a8dd46d72acfa66a
Content-Length: 0
Expect: 100-continue
GET /v1/MossoCloudFS_8ef18146-7dd3-46ea-9d61-b07a511b0c81/test/somefile.css HTTP/1.1
User-Agent: CloudFuse
Host: storage101.ord1.clouddrive.com
Accept: */*
X-Auth-Token: a6264b3d7fa74b61a8dd46d72acfa66a

< HTTP/1.1 200 OK
< Content-Length: 0
< Accept-Ranges: bytes
< Last-Modified: Tue, 21 Jan 2014 22:11:53 GMT
< Etag: d41d8cd98f00b204e9800998ecf8427e
< X-Timestamp: 1390342313.42697
< Content-Type: text/css
< X-Trans-Id: txd62ba63d6c7740719dcd9-0052def0c4ord1
< Date: Tue, 21 Jan 2014 22:12:20 GMT

from cloudfuse.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.