Comment 11 for bug 917541

Revision history for this message
gholt (gholt) wrote :

Ah, in that case you're now talking about the content-type on the file itself, which has little to do with staticweb.

$ curl -XPUT -Hx-auth-token:AUTH_tk9dcb85ee914f4de4b81895be369cdabf http://127.0.0.1:8080/v1/AUTH_test/testutf8/%E2%98%83 --data-binary @testfile
... 201 Created ...

$ curl -i http://127.0.0.1:8080/v1/AUTH_test/testutf8/%E2%98%83
...
Content-Type: application/x-www-form-urlencoded
...

$ curl -XPUT -H 'content-type: text/html; charset=UTF-8' -Hx-auth-token:AUTH_tk9dcb85ee914f4de4b81895be369cdabf http://127.0.0.1:8080/v1/AUTH_test/testutf8/%E2%98%83 --data-binary @testfile
... 201 Created ...

$ curl -i http://127.0.0.1:8080/v1/AUTH_test/testutf8/%E2%98%83
...
Content-Type: text/html; charset=UTF-8
...