{"action":"created","issue":{"url":"https://api.github.com/repos/mholt/caddy/issues/1086","repository_url":"https://api.github.com/repos/mholt/caddy","labels_url":"https://api.github.com/repos/mholt/caddy/issues/1086/labels{/name}","comments_url":"https://api.github.com/repos/mholt/caddy/issues/1086/comments","events_url":"https://api.github.com/repos/mholt/caddy/issues/1086/events","html_url":"https://github.com/mholt/caddy/issues/1086","id":174358554,"number":1086,"title":"Proxying to an internal resource using `internal` and `proxy` does not serve the correct MIME type","user":{"login":"adamwathan","id":4323180,"avatar_url":"https://avatars.githubusercontent.com/u/4323180?v=3","gravatar_id":"","url":"https://api.github.com/users/adamwathan","html_url":"https://github.com/adamwathan","followers_url":"https://api.github.com/users/adamwathan/followers","following_url":"https://api.github.com/users/adamwathan/following{/other_user}","gists_url":"https://api.github.com/users/adamwathan/gists{/gist_id}","starred_url":"https://api.github.com/users/adamwathan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamwathan/subscriptions","organizations_url":"https://api.github.com/users/adamwathan/orgs","repos_url":"https://api.github.com/users/adamwathan/repos","events_url":"https://api.github.com/users/adamwathan/events{/privacy}","received_events_url":"https://api.github.com/users/adamwathan/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mholt/caddy/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/mholt/caddy/labels/help%20wanted","name":"help wanted","color":"159818"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2016-08-31T19:32:20Z","updated_at":"2016-09-24T18:44:36Z","closed_at":null,"body":"### 1. What version of Caddy are you running (`caddy -version`)?\r\n\r\n0.9.1\r\n\r\n### 2. What are you trying to do?\r\n\r\nProxy access to a static file using the `internal` and `proxy` directives.\r\n\r\n### 3. What is your entire Caddyfile?\r\n\r\n```text\r\nlocalhost:2020\r\ninternal /css\r\nproxy /redirect http://localhost:8000\r\n\r\n```\r\n\r\n### 4. How did you run Caddy (give the full command and describe the execution environment)?\r\n\r\n`caddy`, on OSX.\r\n\r\n### 5. What did you expect to see?\r\n\r\nExpected `/redirect` to serve `/css/style.css` with a mime type of `text/css`.\r\n\r\n### 6. What did you see instead (give full error messages and/or log)?\r\n\r\n`/css/style.css` served with a mime type of `text/html`, causing CSS to not be parsed.\r\n\r\n### 7. How can someone who is starting from scratch reproduce this behavior as minimally as possible?\r\n\r\nClone this repository and follow the instructions in the readme:\r\n\r\nhttps://github.com/adamwathan/caddy-mime-bug"},"comment":{"url":"https://api.github.com/repos/mholt/caddy/issues/comments/249380834","html_url":"https://github.com/mholt/caddy/issues/1086#issuecomment-249380834","issue_url":"https://api.github.com/repos/mholt/caddy/issues/1086","id":249380834,"user":{"login":"mholt","id":1128849,"avatar_url":"https://avatars.githubusercontent.com/u/1128849?v=3","gravatar_id":"","url":"https://api.github.com/users/mholt","html_url":"https://github.com/mholt","followers_url":"https://api.github.com/users/mholt/followers","following_url":"https://api.github.com/users/mholt/following{/other_user}","gists_url":"https://api.github.com/users/mholt/gists{/gist_id}","starred_url":"https://api.github.com/users/mholt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mholt/subscriptions","organizations_url":"https://api.github.com/users/mholt/orgs","repos_url":"https://api.github.com/users/mholt/repos","events_url":"https://api.github.com/users/mholt/events{/privacy}","received_events_url":"https://api.github.com/users/mholt/received_events","type":"User","site_admin":false},"created_at":"2016-09-24T18:44:36Z","updated_at":"2016-09-24T18:44:36Z","body":"Man, a lot changed between 0.8.3 and 0.9. I'm not sure which change caused this to happen... \r\n\r\nWait, why does php send the wrong content-type header?"}}
{"actor":{"display_login":"mholt"}}