{"action":"created","issue":{"url":"https://api.github.com/repos/nodejs/io.js/issues/2113","labels_url":"https://api.github.com/repos/nodejs/io.js/issues/2113/labels{/name}","comments_url":"https://api.github.com/repos/nodejs/io.js/issues/2113/comments","events_url":"https://api.github.com/repos/nodejs/io.js/issues/2113/events","html_url":"https://github.com/nodejs/io.js/issues/2113","id":93354696,"number":2113,"title":"url.parse now encodes components","user":{"login":"mojodna","id":45,"avatar_url":"https://avatars.githubusercontent.com/u/45?v=3","gravatar_id":"","url":"https://api.github.com/users/mojodna","html_url":"https://github.com/mojodna","followers_url":"https://api.github.com/users/mojodna/followers","following_url":"https://api.github.com/users/mojodna/following{/other_user}","gists_url":"https://api.github.com/users/mojodna/gists{/gist_id}","starred_url":"https://api.github.com/users/mojodna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mojodna/subscriptions","organizations_url":"https://api.github.com/users/mojodna/orgs","repos_url":"https://api.github.com/users/mojodna/repos","events_url":"https://api.github.com/users/mojodna/events{/privacy}","received_events_url":"https://api.github.com/users/mojodna/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nodejs/io.js/labels/url","name":"url","color":"bfe5bf"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-06T19:12:19Z","updated_at":"2015-07-20T18:05:25Z","closed_at":null,"body":"This behavior changed between Node-0.10 and 0.12/iojs and does not appear to be documented anywhere.\r\n\r\nio.js v2.3.3:\r\n\r\n```\r\n> url.parse(\"http://example.com/{z}/{x}/{y}.png#foo{}\")\r\n{ protocol: 'http:',\r\n  slashes: true,\r\n  auth: null,\r\n  host: 'example.com',\r\n  port: null,\r\n  hostname: 'example.com',\r\n  hash: '#foo%7B%7D',\r\n  search: null,\r\n  query: null,\r\n  pathname: '/%7Bz%7D/%7Bx%7D/%7By%7D.png',\r\n  path: '/%7Bz%7D/%7Bx%7D/%7By%7D.png',\r\n  href: 'http://example.com/%7Bz%7D/%7Bx%7D/%7By%7D.png#foo%7B%7D' }\r\n```\r\n\r\nnode.js v0.10.39:\r\n\r\n```\r\n> url.parse(\"http://example.com/{z}/{x}/{y}.png#foo{}\")\r\n{ protocol: 'http:',\r\n  slashes: true,\r\n  auth: null,\r\n  host: 'example.com',\r\n  port: null,\r\n  hostname: 'example.com',\r\n  hash: '#foo{}',\r\n  search: null,\r\n  query: null,\r\n  pathname: '/{z}/{x}/{y}.png',\r\n  path: '/{z}/{x}/{y}.png',\r\n  href: 'http://example.com/{z}/{x}/{y}.png#foo{}' }\r\n```\r\n\r\nThis also means that URIs no longer roundtrip:\r\n\r\niojs v2.3.3\r\n\r\n```\r\n> url.format(url.parse(\"http://example.com/{z}/{x}/{y}.png#foo{}\"))\r\n'http://example.com/%7Bz%7D/%7Bx%7D/%7By%7D.png#foo%7B%7D'\r\n```\r\n\r\nnode.js v0.10.39:\r\n\r\n```\r\n> url.format(url.parse(\"http://example.com/{z}/{x}/{y}.png#foo{}\"))\r\n'http://example.com/{z}/{x}/{y}.png#foo{}'\r\n```"},"comment":{"url":"https://api.github.com/repos/nodejs/io.js/issues/comments/122969972","html_url":"https://github.com/nodejs/io.js/issues/2113#issuecomment-122969972","issue_url":"https://api.github.com/repos/nodejs/io.js/issues/2113","id":122969972,"user":{"login":"mojodna","id":45,"avatar_url":"https://avatars.githubusercontent.com/u/45?v=3","gravatar_id":"","url":"https://api.github.com/users/mojodna","html_url":"https://github.com/mojodna","followers_url":"https://api.github.com/users/mojodna/followers","following_url":"https://api.github.com/users/mojodna/following{/other_user}","gists_url":"https://api.github.com/users/mojodna/gists{/gist_id}","starred_url":"https://api.github.com/users/mojodna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mojodna/subscriptions","organizations_url":"https://api.github.com/users/mojodna/orgs","repos_url":"https://api.github.com/users/mojodna/repos","events_url":"https://api.github.com/users/mojodna/events{/privacy}","received_events_url":"https://api.github.com/users/mojodna/received_events","type":"User","site_admin":false},"created_at":"2015-07-20T18:05:25Z","updated_at":"2015-07-20T18:05:25Z","body":"@Fishrock123 it is: https://github.com/joyent/node/issues/25636"}}