Skip to content

Commit

Permalink
馃悰 Fixed routes.yaml upload on Ubuntu
Browse files Browse the repository at this point in the history
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
  • Loading branch information
kirrg001 committed Sep 10, 2018
1 parent 8f568bc commit ec49a48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/server/config/overrides.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit ec49a48

Please sign in to comment.