{"action":"created","issue":{"url":"https://api.github.com/repos/sideshowcoder/canned/issues/82","labels_url":"https://api.github.com/repos/sideshowcoder/canned/issues/82/labels{/name}","comments_url":"https://api.github.com/repos/sideshowcoder/canned/issues/82/comments","events_url":"https://api.github.com/repos/sideshowcoder/canned/issues/82/events","html_url":"https://github.com/sideshowcoder/canned/pull/82","id":118770494,"number":82,"title":"Fix 3 simple bugs","user":{"login":"git-jiby-me","id":1772824,"avatar_url":"https://avatars.githubusercontent.com/u/1772824?v=3","gravatar_id":"","url":"https://api.github.com/users/git-jiby-me","html_url":"https://github.com/git-jiby-me","followers_url":"https://api.github.com/users/git-jiby-me/followers","following_url":"https://api.github.com/users/git-jiby-me/following{/other_user}","gists_url":"https://api.github.com/users/git-jiby-me/gists{/gist_id}","starred_url":"https://api.github.com/users/git-jiby-me/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/git-jiby-me/subscriptions","organizations_url":"https://api.github.com/users/git-jiby-me/orgs","repos_url":"https://api.github.com/users/git-jiby-me/repos","events_url":"https://api.github.com/users/git-jiby-me/events{/privacy}","received_events_url":"https://api.github.com/users/git-jiby-me/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-25T06:26:38Z","updated_at":"2015-11-25T06:31:54Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/sideshowcoder/canned/pulls/82","html_url":"https://github.com/sideshowcoder/canned/pull/82","diff_url":"https://github.com/sideshowcoder/canned/pull/82.diff","patch_url":"https://github.com/sideshowcoder/canned/pull/82.patch"},"body":"- The regex for matching request, was not considering arrays in the\nrequest JSON\n- For request with a request body, canned was checking content type to\nexactly match `application/json`, which is not good as browsers may\nsent charset as well with the content type.\n- For matching request and filters with more accuracy, we were\nconverting the values of all keys in request to string before\ncomparing, but this was being done wrong as it was creating string of\nObjects and arrays as well, which it shouldn’t"},"comment":{"url":"https://api.github.com/repos/sideshowcoder/canned/issues/comments/159509656","html_url":"https://github.com/sideshowcoder/canned/pull/82#issuecomment-159509656","issue_url":"https://api.github.com/repos/sideshowcoder/canned/issues/82","id":159509656,"user":{"login":"git-jiby-me","id":1772824,"avatar_url":"https://avatars.githubusercontent.com/u/1772824?v=3","gravatar_id":"","url":"https://api.github.com/users/git-jiby-me","html_url":"https://github.com/git-jiby-me","followers_url":"https://api.github.com/users/git-jiby-me/followers","following_url":"https://api.github.com/users/git-jiby-me/following{/other_user}","gists_url":"https://api.github.com/users/git-jiby-me/gists{/gist_id}","starred_url":"https://api.github.com/users/git-jiby-me/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/git-jiby-me/subscriptions","organizations_url":"https://api.github.com/users/git-jiby-me/orgs","repos_url":"https://api.github.com/users/git-jiby-me/repos","events_url":"https://api.github.com/users/git-jiby-me/events{/privacy}","received_events_url":"https://api.github.com/users/git-jiby-me/received_events","type":"User","site_admin":false},"created_at":"2015-11-25T06:31:54Z","updated_at":"2015-11-25T06:31:54Z","body":"@sideshowcoder I am also working in something similar to https://github.com/sideshowcoder/canned/issues/56, but my requirement being more of like having a filter like \r\n```\r\n//! proxyRequest: http:domain.com/path/endpoint?queryKey=queryValue\r\n```\r\nwhich will basically proxy matching request to the url and then provide the response from the url back.\r\n\r\nWould this be something interesting for you?"}}