{"action":"created","issue":{"url":"https://api.github.com/repos/wanghaisheng/openresty-tutorial/issues/3","repository_url":"https://api.github.com/repos/wanghaisheng/openresty-tutorial","labels_url":"https://api.github.com/repos/wanghaisheng/openresty-tutorial/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/wanghaisheng/openresty-tutorial/issues/3/comments","events_url":"https://api.github.com/repos/wanghaisheng/openresty-tutorial/issues/3/events","html_url":"https://github.com/wanghaisheng/openresty-tutorial/issues/3","id":142555354,"number":3,"title":"best practice","user":{"login":"wanghaisheng","id":2363295,"avatar_url":"https://avatars.githubusercontent.com/u/2363295?v=3","gravatar_id":"","url":"https://api.github.com/users/wanghaisheng","html_url":"https://github.com/wanghaisheng","followers_url":"https://api.github.com/users/wanghaisheng/followers","following_url":"https://api.github.com/users/wanghaisheng/following{/other_user}","gists_url":"https://api.github.com/users/wanghaisheng/gists{/gist_id}","starred_url":"https://api.github.com/users/wanghaisheng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wanghaisheng/subscriptions","organizations_url":"https://api.github.com/users/wanghaisheng/orgs","repos_url":"https://api.github.com/users/wanghaisheng/repos","events_url":"https://api.github.com/users/wanghaisheng/events{/privacy}","received_events_url":"https://api.github.com/users/wanghaisheng/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-22T05:54:07Z","updated_at":"2016-03-22T07:55:59Z","closed_at":null,"body":""},"comment":{"url":"https://api.github.com/repos/wanghaisheng/openresty-tutorial/issues/comments/199684091","html_url":"https://github.com/wanghaisheng/openresty-tutorial/issues/3#issuecomment-199684091","issue_url":"https://api.github.com/repos/wanghaisheng/openresty-tutorial/issues/3","id":199684091,"user":{"login":"wanghaisheng","id":2363295,"avatar_url":"https://avatars.githubusercontent.com/u/2363295?v=3","gravatar_id":"","url":"https://api.github.com/users/wanghaisheng","html_url":"https://github.com/wanghaisheng","followers_url":"https://api.github.com/users/wanghaisheng/followers","following_url":"https://api.github.com/users/wanghaisheng/following{/other_user}","gists_url":"https://api.github.com/users/wanghaisheng/gists{/gist_id}","starred_url":"https://api.github.com/users/wanghaisheng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wanghaisheng/subscriptions","organizations_url":"https://api.github.com/users/wanghaisheng/orgs","repos_url":"https://api.github.com/users/wanghaisheng/repos","events_url":"https://api.github.com/users/wanghaisheng/events{/privacy}","received_events_url":"https://api.github.com/users/wanghaisheng/received_events","type":"User","site_admin":false},"created_at":"2016-03-22T07:55:59Z","updated_at":"2016-03-22T07:55:59Z","body":"url参数中存在json  对json进行urlencode之后 如何通过get_uri_args()拿到未转义的字符串\r\n\r\nlocal function urlencodeChar(char)\r\n    return \"%\" .. string.format(\"%02X\", string.byte(c))\r\nend\r\n\r\nfunction string.urlencode(str)\r\n    -- convert line endings\r\n    str = string.gsub(tostring(str), \"\\n\", \"\\r\\n\")\r\n    -- escape all characters but alphanumeric, '.' and '-'\r\n    str = string.gsub(str, \"([^%w%.%- ])\", urlencodeChar)\r\n    -- convert spaces to \"+\" symbols\r\n    return string.gsub(str, \" \", \"+\")\r\nend"}}