0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00

🐛 Fixed routes.yaml upload on Ubuntu

no issue

- a specific content type was missing (e.g. Firefox on Ubuntu)
- they send a different content-type to the server: application/x-yaml
- was reported in the forum: https://forum.ghost.org/t/cant-upload-routes-yamls-for-dynamic-routing-error-please-select-a-valid-yaml-file-to-import/2986
This commit is contained in:
kirrg001 2018-09-10 20:00:56 +02:00
parent 8f568bc556
commit ec49a48a1e

View file

@ -54,7 +54,7 @@
},
"routes": {
"extensions": [".yaml"],
"contentTypes": ["text/plain", "text/yaml", "application/octet-stream", "application/yaml"]
"contentTypes": ["text/plain", "text/yaml", "application/octet-stream", "application/yaml", "application/x-yaml"]
}
},
"times": {