{"action":"created","issue":{"url":"https://api.github.com/repos/embedthis/goahead/issues/182","labels_url":"https://api.github.com/repos/embedthis/goahead/issues/182/labels{/name}","comments_url":"https://api.github.com/repos/embedthis/goahead/issues/182/comments","events_url":"https://api.github.com/repos/embedthis/goahead/issues/182/events","html_url":"https://github.com/embedthis/goahead/issues/182","id":113376754,"number":182,"title":"Default page is not loaded if fs is located in ROM-FS","user":{"login":"Isarhamster","id":14833289,"avatar_url":"https://avatars.githubusercontent.com/u/14833289?v=3","gravatar_id":"","url":"https://api.github.com/users/Isarhamster","html_url":"https://github.com/Isarhamster","followers_url":"https://api.github.com/users/Isarhamster/followers","following_url":"https://api.github.com/users/Isarhamster/following{/other_user}","gists_url":"https://api.github.com/users/Isarhamster/gists{/gist_id}","starred_url":"https://api.github.com/users/Isarhamster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Isarhamster/subscriptions","organizations_url":"https://api.github.com/users/Isarhamster/orgs","repos_url":"https://api.github.com/users/Isarhamster/repos","events_url":"https://api.github.com/users/Isarhamster/events{/privacy}","received_events_url":"https://api.github.com/users/Isarhamster/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/embedthis/goahead/labels/question","name":"question","color":"207de5"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-26T15:09:41Z","updated_at":"2015-11-02T09:33:08Z","closed_at":"2015-11-02T09:33:08Z","body":"The default page is not loaded, if ME_ROM is used, as websStatFile forgets to remove the trailing '/' from the URL in case the FS is not WINDOWS.\r\nMy bugfix for fs.c looks like this (avoiding a copy of the filename as the Windows version does):\r\n\r\n    PUBLIC int websStatFile(char *path, WebsFileInfo *sbuf)\r\n    {\r\n    #if ME_ROM\r\n    WebsRomIndex    *wip;\r\n    WebsKey         *sp;\r\n\r\n    assert(path && *path);\r\n\r\n\tint nchars = strlen(path);\r\n\tchar name[ME_GOAHEAD_LIMIT_FILENAME];\r\n\tif (path[nchars - 1] == '/' || path[nchars - 1] == '\\\\')\r\n\t{\r\n\t\tstrncpy(name, path, ME_GOAHEAD_LIMIT_FILENAME);\r\n    \r\n\t\tname[--nchars] = '\\0';\r\n\t\tpath = name;\r\n\t}"},"comment":{"url":"https://api.github.com/repos/embedthis/goahead/issues/comments/152969755","html_url":"https://github.com/embedthis/goahead/issues/182#issuecomment-152969755","issue_url":"https://api.github.com/repos/embedthis/goahead/issues/182","id":152969755,"user":{"login":"Isarhamster","id":14833289,"avatar_url":"https://avatars.githubusercontent.com/u/14833289?v=3","gravatar_id":"","url":"https://api.github.com/users/Isarhamster","html_url":"https://github.com/Isarhamster","followers_url":"https://api.github.com/users/Isarhamster/followers","following_url":"https://api.github.com/users/Isarhamster/following{/other_user}","gists_url":"https://api.github.com/users/Isarhamster/gists{/gist_id}","starred_url":"https://api.github.com/users/Isarhamster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Isarhamster/subscriptions","organizations_url":"https://api.github.com/users/Isarhamster/orgs","repos_url":"https://api.github.com/users/Isarhamster/repos","events_url":"https://api.github.com/users/Isarhamster/events{/privacy}","received_events_url":"https://api.github.com/users/Isarhamster/received_events","type":"User","site_admin":false},"created_at":"2015-11-02T09:33:08Z","updated_at":"2015-11-02T09:33:08Z","body":"dev branch works great - I assume that the changes make it into 3.5.1, so I close this issue."}}