{"action":"created","issue":{"url":"https://api.github.com/repos/perwendel/spark/issues/550","repository_url":"https://api.github.com/repos/perwendel/spark","labels_url":"https://api.github.com/repos/perwendel/spark/issues/550/labels{/name}","comments_url":"https://api.github.com/repos/perwendel/spark/issues/550/comments","events_url":"https://api.github.com/repos/perwendel/spark/issues/550/events","html_url":"https://github.com/perwendel/spark/issues/550","id":153910720,"number":550,"title":"Trouble with index.html (welcome file), Spark 2.5","user":{"login":"LaercioMetzner","id":11555026,"avatar_url":"https://avatars.githubusercontent.com/u/11555026?v=3","gravatar_id":"","url":"https://api.github.com/users/LaercioMetzner","html_url":"https://github.com/LaercioMetzner","followers_url":"https://api.github.com/users/LaercioMetzner/followers","following_url":"https://api.github.com/users/LaercioMetzner/following{/other_user}","gists_url":"https://api.github.com/users/LaercioMetzner/gists{/gist_id}","starred_url":"https://api.github.com/users/LaercioMetzner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LaercioMetzner/subscriptions","organizations_url":"https://api.github.com/users/LaercioMetzner/orgs","repos_url":"https://api.github.com/users/LaercioMetzner/repos","events_url":"https://api.github.com/users/LaercioMetzner/events{/privacy}","received_events_url":"https://api.github.com/users/LaercioMetzner/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/perwendel/spark/labels/Bug","name":"Bug","color":"f7c6c7"},{"url":"https://api.github.com/repos/perwendel/spark/labels/Please%20prioritize","name":"Please prioritize","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-05-10T02:24:22Z","updated_at":"2016-05-10T21:46:23Z","closed_at":null,"body":"I'm developing an app that's hosted on an Openshift DIY cartige. The front-end is AngularJs and the back-end is pure sparkjava(since version 2.2). After I upgraded spark to version 2.5, I'm unable to access my app like [this](http://jfood-laerciometzner.rhcloud.com/) (http://jfood-laerciometzner.rhcloud.com/) without the index.html at the end of the URL. When informing index.html at the end, like [this](http://jfood-laerciometzner.rhcloud.com/index.html) (http://jfood-laerciometzner.rhcloud.com/index.html), it behaves properly. Here is the snipped I tweaked, any help would be appreciated.\r\n\r\n`IS_RUNNING_ON_DIY = System.getenv(\"OPENSHIFT_DIY_IP\") != null;`\r\n`...`\r\n`\t\tif (IS_RUNNING_ON_DIY) {`\r\n`\t\t\t//staticFileLocation(STATIC_FILES_LOCATION_PROD);`\r\n`\t\t\tstaticFiles.location(STATIC_FILES_LOCATION_PROD);`\r\n`\t\t\tstaticFiles.expireTime(1200); // 20 minutes`\r\n`\t\t} else {`\r\n`\t\t\t//externalStaticFileLocation(STATIC_FILES_LOCATION_DEV);`\r\n`\t\t\tstaticFiles.externalLocation(STATIC_FILES_LOCATION_DEV);`\r\n`\t\t}`\r\n`                // eighter with or without the below it doesn't behave as expected`\r\n`\t\tredirect.get(\"\", \"/\");`\r\n`\t\tredirect.get(\"/\", \"/index.html\");`"},"comment":{"url":"https://api.github.com/repos/perwendel/spark/issues/comments/218301776","html_url":"https://github.com/perwendel/spark/issues/550#issuecomment-218301776","issue_url":"https://api.github.com/repos/perwendel/spark/issues/550","id":218301776,"user":{"login":"tipsy","id":1521451,"avatar_url":"https://avatars.githubusercontent.com/u/1521451?v=3","gravatar_id":"","url":"https://api.github.com/users/tipsy","html_url":"https://github.com/tipsy","followers_url":"https://api.github.com/users/tipsy/followers","following_url":"https://api.github.com/users/tipsy/following{/other_user}","gists_url":"https://api.github.com/users/tipsy/gists{/gist_id}","starred_url":"https://api.github.com/users/tipsy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tipsy/subscriptions","organizations_url":"https://api.github.com/users/tipsy/orgs","repos_url":"https://api.github.com/users/tipsy/repos","events_url":"https://api.github.com/users/tipsy/events{/privacy}","received_events_url":"https://api.github.com/users/tipsy/received_events","type":"User","site_admin":false},"created_at":"2016-05-10T21:46:23Z","updated_at":"2016-05-10T21:46:23Z","body":"> For a mysterious reason your server sends the index file with a content-type of text-plain\r\n\r\nWe don't set a mime-type currently, see #545. "}}