{"action":"created","issue":{"url":"https://api.github.com/repos/Starcounter/Starcounter/issues/2847","labels_url":"https://api.github.com/repos/Starcounter/Starcounter/issues/2847/labels{/name}","comments_url":"https://api.github.com/repos/Starcounter/Starcounter/issues/2847/comments","events_url":"https://api.github.com/repos/Starcounter/Starcounter/issues/2847/events","html_url":"https://github.com/Starcounter/Starcounter/issues/2847","id":101187659,"number":2847,"title":"Starcounter HTTP handlers don't urldecode string parameters","user":{"login":"mtornwall","id":1321973,"avatar_url":"https://avatars.githubusercontent.com/u/1321973?v=3","gravatar_id":"","url":"https://api.github.com/users/mtornwall","html_url":"https://github.com/mtornwall","followers_url":"https://api.github.com/users/mtornwall/followers","following_url":"https://api.github.com/users/mtornwall/following{/other_user}","gists_url":"https://api.github.com/users/mtornwall/gists{/gist_id}","starred_url":"https://api.github.com/users/mtornwall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtornwall/subscriptions","organizations_url":"https://api.github.com/users/mtornwall/orgs","repos_url":"https://api.github.com/users/mtornwall/repos","events_url":"https://api.github.com/users/mtornwall/events{/privacy}","received_events_url":"https://api.github.com/users/mtornwall/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"alemoi","id":208134,"avatar_url":"https://avatars.githubusercontent.com/u/208134?v=3","gravatar_id":"","url":"https://api.github.com/users/alemoi","html_url":"https://github.com/alemoi","followers_url":"https://api.github.com/users/alemoi/followers","following_url":"https://api.github.com/users/alemoi/following{/other_user}","gists_url":"https://api.github.com/users/alemoi/gists{/gist_id}","starred_url":"https://api.github.com/users/alemoi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alemoi/subscriptions","organizations_url":"https://api.github.com/users/alemoi/orgs","repos_url":"https://api.github.com/users/alemoi/repos","events_url":"https://api.github.com/users/alemoi/events{/privacy}","received_events_url":"https://api.github.com/users/alemoi/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2015-08-15T16:20:15Z","updated_at":"2015-08-17T07:43:12Z","closed_at":null,"body":"... as evidenced by the result of invoking a simple handler like:\r\n\r\n```\r\nHandle.GET(\"/app/foo?bar={?}\", (string bar) =>\r\n{\r\n    return bar;\r\n});\r\n```\r\n\r\nwith the query string `bar=hello%20world` - the string is returned verbatim.\r\n\r\nArguably there may be cases where you actually don't want any urldecoding to take place. I propose that a special attribute be applied to such parameters to suppress decoding."},"comment":{"url":"https://api.github.com/repos/Starcounter/Starcounter/issues/comments/131712147","html_url":"https://github.com/Starcounter/Starcounter/issues/2847#issuecomment-131712147","issue_url":"https://api.github.com/repos/Starcounter/Starcounter/issues/2847","id":131712147,"user":{"login":"mtornwall","id":1321973,"avatar_url":"https://avatars.githubusercontent.com/u/1321973?v=3","gravatar_id":"","url":"https://api.github.com/users/mtornwall","html_url":"https://github.com/mtornwall","followers_url":"https://api.github.com/users/mtornwall/followers","following_url":"https://api.github.com/users/mtornwall/following{/other_user}","gists_url":"https://api.github.com/users/mtornwall/gists{/gist_id}","starred_url":"https://api.github.com/users/mtornwall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtornwall/subscriptions","organizations_url":"https://api.github.com/users/mtornwall/orgs","repos_url":"https://api.github.com/users/mtornwall/repos","events_url":"https://api.github.com/users/mtornwall/events{/privacy}","received_events_url":"https://api.github.com/users/mtornwall/received_events","type":"User","site_admin":false},"created_at":"2015-08-17T07:43:11Z","updated_at":"2015-08-17T07:43:11Z","body":"> You can decode the values with:\r\n> \r\n> ```bar = System.Web.HttpUtility.UrlDecode(bar)```\r\n\r\nI'm currently using `Uri.UnescapeDataString` to avoid a dependency on `System.Web`. But my point is rather that I think it would be reasonable for query string parameters to be decoded by default. :-)"}}