{"action":"created","issue":{"url":"https://api.github.com/repos/googledatalab/datalab/issues/1067","repository_url":"https://api.github.com/repos/googledatalab/datalab","labels_url":"https://api.github.com/repos/googledatalab/datalab/issues/1067/labels{/name}","comments_url":"https://api.github.com/repos/googledatalab/datalab/issues/1067/comments","events_url":"https://api.github.com/repos/googledatalab/datalab/issues/1067/events","html_url":"https://github.com/googledatalab/datalab/issues/1067","id":193314213,"number":1067,"title":"Content-Type not set","user":{"login":"bluecmd","id":149442,"avatar_url":"https://avatars0.githubusercontent.com/u/149442?v=3","gravatar_id":"","url":"https://api.github.com/users/bluecmd","html_url":"https://github.com/bluecmd","followers_url":"https://api.github.com/users/bluecmd/followers","following_url":"https://api.github.com/users/bluecmd/following{/other_user}","gists_url":"https://api.github.com/users/bluecmd/gists{/gist_id}","starred_url":"https://api.github.com/users/bluecmd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bluecmd/subscriptions","organizations_url":"https://api.github.com/users/bluecmd/orgs","repos_url":"https://api.github.com/users/bluecmd/repos","events_url":"https://api.github.com/users/bluecmd/events{/privacy}","received_events_url":"https://api.github.com/users/bluecmd/received_events","type":"User","site_admin":false},"labels":[{"id":120021441,"url":"https://api.github.com/repos/googledatalab/datalab/labels/bug","name":"bug","color":"fc2929","default":true},{"id":196138006,"url":"https://api.github.com/repos/googledatalab/datalab/labels/P2","name":"P2","color":"fbca04","default":false}],"state":"closed","locked":false,"assignee":{"login":"jimmc","id":116825,"avatar_url":"https://avatars2.githubusercontent.com/u/116825?v=3","gravatar_id":"","url":"https://api.github.com/users/jimmc","html_url":"https://github.com/jimmc","followers_url":"https://api.github.com/users/jimmc/followers","following_url":"https://api.github.com/users/jimmc/following{/other_user}","gists_url":"https://api.github.com/users/jimmc/gists{/gist_id}","starred_url":"https://api.github.com/users/jimmc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimmc/subscriptions","organizations_url":"https://api.github.com/users/jimmc/orgs","repos_url":"https://api.github.com/users/jimmc/repos","events_url":"https://api.github.com/users/jimmc/events{/privacy}","received_events_url":"https://api.github.com/users/jimmc/received_events","type":"User","site_admin":false},"assignees":[{"login":"jimmc","id":116825,"avatar_url":"https://avatars2.githubusercontent.com/u/116825?v=3","gravatar_id":"","url":"https://api.github.com/users/jimmc","html_url":"https://github.com/jimmc","followers_url":"https://api.github.com/users/jimmc/followers","following_url":"https://api.github.com/users/jimmc/following{/other_user}","gists_url":"https://api.github.com/users/jimmc/gists{/gist_id}","starred_url":"https://api.github.com/users/jimmc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimmc/subscriptions","organizations_url":"https://api.github.com/users/jimmc/orgs","repos_url":"https://api.github.com/users/jimmc/repos","events_url":"https://api.github.com/users/jimmc/events{/privacy}","received_events_url":"https://api.github.com/users/jimmc/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2016-12-03T21:20:03Z","updated_at":"2017-04-04T23:19:01Z","closed_at":"2017-04-04T23:19:01Z","body":"Hi,\r\n\r\nI'm having some troubles rendering the pages from datalab. I'm using the instructions from https://cloud.google.com/datalab/docs/quickstarts/quickstart-gce-frontend and when I'm inside the VM this is what I get:\r\n\r\n```\r\ndatalab-0:~$ curl -v http://localhost:8080\r\n* About to connect() to localhost port 8080 (#0)\r\n*   Trying 127.0.0.1...\r\n* connected\r\n* Connected to localhost (127.0.0.1) port 8080 (#0)\r\n> GET / HTTP/1.1\r\n> User-Agent: curl/7.26.0\r\n> Host: localhost:8080\r\n> Accept: */*\r\n> \r\n* additional stuff not fine transfer.c:1037: 0 0\r\n* HTTP 1.1 or later with persistent connection, pipelining supported\r\n< HTTP/1.1 200 OK\r\n< Date: Sat, 03 Dec 2016 21:17:17 GMT\r\n< Connection: keep-alive\r\n< Transfer-Encoding: chunked\r\n< \r\n<html>\r\n  <head>\r\n    <link rel=\"stylesheet\" href=\"/static/style/style.min.css\" type=\"text/css\" />\r\n    <title>\r\n{..snip..]\r\n```\r\n\r\nNotice that there is no Content-Type, which causes my Chrome to render the page as plain text, not HTML.\r\n\r\nWhen asking for static stuff it appears the Content-Type is set:\r\n```\r\ndatalab-0:~$ curl -v http://localhost:8080/static/style/style.min.css | head\r\n* About to connect() to localhost port 8080 (#0)\r\n*   Trying 127.0.0.1...\r\n  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\r\n                                 Dload  Upload   Total   Spent    Left  Speed\r\n  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0* connected\r\n* Connected to localhost (127.0.0.1) port 8080 (#0)\r\n> GET /static/style/style.min.css HTTP/1.1\r\n> User-Agent: curl/7.26.0\r\n> Host: localhost:8080\r\n> Accept: */*\r\n> \r\n* additional stuff not fine transfer.c:1037: 0 0\r\n* HTTP 1.1 or later with persistent connection, pipelining supported\r\n< HTTP/1.1 200 OK\r\n< Content-Type: text/css\r\n< Date: Sat, 03 Dec 2016 21:18:37 GMT\r\n< Connection: keep-alive\r\n< Transfer-Encoding: chunked\r\n< \r\n```\r\n\r\nI'll work around this by forcing Content-Type if not set, but a fix would be much appreciated.\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/googledatalab/datalab/issues/comments/291668811","html_url":"https://github.com/googledatalab/datalab/issues/1067#issuecomment-291668811","issue_url":"https://api.github.com/repos/googledatalab/datalab/issues/1067","id":291668811,"user":{"login":"jimmc","id":116825,"avatar_url":"https://avatars2.githubusercontent.com/u/116825?v=3","gravatar_id":"","url":"https://api.github.com/users/jimmc","html_url":"https://github.com/jimmc","followers_url":"https://api.github.com/users/jimmc/followers","following_url":"https://api.github.com/users/jimmc/following{/other_user}","gists_url":"https://api.github.com/users/jimmc/gists{/gist_id}","starred_url":"https://api.github.com/users/jimmc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimmc/subscriptions","organizations_url":"https://api.github.com/users/jimmc/orgs","repos_url":"https://api.github.com/users/jimmc/repos","events_url":"https://api.github.com/users/jimmc/events{/privacy}","received_events_url":"https://api.github.com/users/jimmc/received_events","type":"User","site_admin":false},"created_at":"2017-04-04T23:19:01Z","updated_at":"2017-04-04T23:19:01Z","body":"I spent some time today trying to reproduce this bug and have been unable to do so. One thing I noticed is that, when using curl to get the root location (location:8080 from inside the container), it now gives me a 302 and a forwarding location, rather than directly giving me the content of the starting page. That looks to me like something changed in the way the root page is delivered, so perhaps there was also a change to how content-type is handled.\r\n\r\nI'm going to close this issue as cant-reproduce. If you are still seeing this problem, please reopen, at which point I'd like to get some more details to help me reproduce it."}}
{"actor":{"display_login":"jimmc"}}