{"action":"created","comment":{"url":"https://api.github.com/repos/Rob--W/cors-anywhere/pulls/comments/54164390","id":54164390,"diff_hunk":"@@ -10,6 +10,9 @@ var assert = require('assert');\n var helpTextPath = path.join(__dirname, '../lib/help.txt');\n var helpText = fs.readFileSync(helpTextPath, { encoding: 'utf8' });\n \n+var customHelpTextPath = path.join(__dirname, './customHelp.txt');\n+var customHelpText = fs.readFileSync(helpTextPath, { encoding: 'utf8' });","path":"test/test.js","position":5,"original_position":5,"commit_id":"75f8e8349e01dde844d4dac84acf8e1b8eeb32c0","original_commit_id":"75f8e8349e01dde844d4dac84acf8e1b8eeb32c0","user":{"login":"Rob--W","id":1365071,"avatar_url":"https://avatars.githubusercontent.com/u/1365071?v=3","gravatar_id":"","url":"https://api.github.com/users/Rob--W","html_url":"https://github.com/Rob--W","followers_url":"https://api.github.com/users/Rob--W/followers","following_url":"https://api.github.com/users/Rob--W/following{/other_user}","gists_url":"https://api.github.com/users/Rob--W/gists{/gist_id}","starred_url":"https://api.github.com/users/Rob--W/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rob--W/subscriptions","organizations_url":"https://api.github.com/users/Rob--W/orgs","repos_url":"https://api.github.com/users/Rob--W/repos","events_url":"https://api.github.com/users/Rob--W/events{/privacy}","received_events_url":"https://api.github.com/users/Rob--W/received_events","type":"User","site_admin":false},"body":"Move these inside the tests, since this is test-specific data.","created_at":"2016-02-25T21:06:02Z","updated_at":"2016-02-25T21:06:02Z","html_url":"https://github.com/Rob--W/cors-anywhere/pull/40#discussion_r54164390","pull_request_url":"https://api.github.com/repos/Rob--W/cors-anywhere/pulls/40","_links":{"self":{"href":"https://api.github.com/repos/Rob--W/cors-anywhere/pulls/comments/54164390"},"html":{"href":"https://github.com/Rob--W/cors-anywhere/pull/40#discussion_r54164390"},"pull_request":{"href":"https://api.github.com/repos/Rob--W/cors-anywhere/pulls/40"}}},"pull_request":{"url":"https://api.github.com/repos/Rob--W/cors-anywhere/pulls/40","id":60741571,"html_url":"https://github.com/Rob--W/cors-anywhere/pull/40","diff_url":"https://github.com/Rob--W/cors-anywhere/pull/40.diff","patch_url":"https://github.com/Rob--W/cors-anywhere/pull/40.patch","issue_url":"https://api.github.com/repos/Rob--W/cors-anywhere/issues/40","number":40,"state":"open","locked":false,"title":"Feature/custom help text","user":{"login":"rodrigopavezi","id":1659305,"avatar_url":"https://avatars.githubusercontent.com/u/1659305?v=3","gravatar_id":"","url":"https://api.github.com/users/rodrigopavezi","html_url":"https://github.com/rodrigopavezi","followers_url":"https://api.github.com/users/rodrigopavezi/followers","following_url":"https://api.github.com/users/rodrigopavezi/following{/other_user}","gists_url":"https://api.github.com/users/rodrigopavezi/gists{/gist_id}","starred_url":"https://api.github.com/users/rodrigopavezi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rodrigopavezi/subscriptions","organizations_url":"https://api.github.com/users/rodrigopavezi/orgs","repos_url":"https://api.github.com/users/rodrigopavezi/repos","events_url":"https://api.github.com/users/rodrigopavezi/events{/privacy}","received_events_url":"https://api.github.com/users/rodrigopavezi/received_events","type":"User","site_admin":false},"body":"@Rob--W I have added an option to pass a different help text file to the server. Could you please review and merge if you see that it makes sense to you?\r\n\r\nCheers","created_at":"2016-02-25T20:26:42Z","updated_at":"2016-02-25T21:06:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3b4a862b86c54b3339a6dd0f0e92ade8b14088d0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Rob--W/cors-anywhere/pulls/40/commits","review_comments_url":"https://api.github.com/repos/Rob--W/cors-anywhere/pulls/40/comments","review_comment_url":"https://api.github.com/repos/Rob--W/cors-anywhere/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Rob--W/cors-anywhere/issues/40/comments","statuses_url":"https://api.github.com/repos/Rob--W/cors-anywhere/statuses/75f8e8349e01dde844d4dac84acf8e1b8eeb32c0","head":{"label":"Rise-Vision:feature/custom-help-text","ref":"feature/custom-help-text","sha":"75f8e8349e01dde844d4dac84acf8e1b8eeb32c0","user":{"login":"Rise-Vision","id":6840223,"avatar_url":"https://avatars.githubusercontent.com/u/6840223?v=3","gravatar_id":"","url":"https://api.github.com/users/Rise-Vision","html_url":"https://github.com/Rise-Vision","followers_url":"https://api.github.com/users/Rise-Vision/followers","following_url":"https://api.github.com/users/Rise-Vision/following{/other_user}","gists_url":"https://api.github.com/users/Rise-Vision/gists{/gist_id}","starred_url":"https://api.github.com/users/Rise-Vision/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rise-Vision/subscriptions","organizations_url":"https://api.github.com/users/Rise-Vision/orgs","repos_url":"https://api.github.com/users/Rise-Vision/repos","events_url":"https://api.github.com/users/Rise-Vision/events{/privacy}","received_events_url":"https://api.github.com/users/Rise-Vision/received_events","type":"Organization","site_admin":false},"repo":{"id":52552938,"name":"cors-anywhere","full_name":"Rise-Vision/cors-anywhere","owner":{"login":"Rise-Vision","id":6840223,"avatar_url":"https://avatars.githubusercontent.com/u/6840223?v=3","gravatar_id":"","url":"https://api.github.com/users/Rise-Vision","html_url":"https://github.com/Rise-Vision","followers_url":"https://api.github.com/users/Rise-Vision/followers","following_url":"https://api.github.com/users/Rise-Vision/following{/other_user}","gists_url":"https://api.github.com/users/Rise-Vision/gists{/gist_id}","starred_url":"https://api.github.com/users/Rise-Vision/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rise-Vision/subscriptions","organizations_url":"https://api.github.com/users/Rise-Vision/orgs","repos_url":"https://api.github.com/users/Rise-Vision/repos","events_url":"https://api.github.com/users/Rise-Vision/events{/privacy}","received_events_url":"https://api.github.com/users/Rise-Vision/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Rise-Vision/cors-anywhere","description":"CORS Anywhere is a NodeJS reverse proxy which adds CORS headers to the proxied request.","fork":true,"url":"https://api.github.com/repos/Rise-Vision/cors-anywhere","forks_url":"https://api.github.com/repos/Rise-Vision/cors-anywhere/forks","keys_url":"https://api.github.com/repos/Rise-Vision/cors-anywhere/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Rise-Vision/cors-anywhere/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Rise-Vision/cors-anywhere/teams","hooks_url":"https://api.github.com/repos/Rise-Vision/cors-anywhere/hooks","issue_events_url":"https://api.github.com/repos/Rise-Vision/cors-anywhere/issues/events{/number}","events_url":"https://api.github.com/repos/Rise-Vision/cors-anywhere/events","assignees_url":"https://api.github.com/repos/Rise-Vision/cors-anywhere/assignees{/user}","branches_url":"https://api.github.com/repos/Rise-Vision/cors-anywhere/branches{/branch}","tags_url":"https://api.github.com/repos/Rise-Vision/cors-anywhere/tags","blobs_url":"https://api.github.com/repos/Rise-Vision/cors-anywhere/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Rise-Vision/cors-anywhere/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Rise-Vision/cors-anywhere/git/refs{/sha}","trees_url":"https://api.github.com/repos/Rise-Vision/cors-anywhere/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Rise-Vision/cors-anywhere/statuses/{sha}","languages_url":"https://api.github.com/repos/Rise-Vision/cors-anywhere/languages","stargazers_url":"https://api.github.com/repos/Rise-Vision/cors-anywhere/stargazers","contributors_url":"https://api.github.com/repos/Rise-Vision/cors-anywhere/contributors","subscribers_url":"https://api.github.com/repos/Rise-Vision/cors-anywhere/subscribers","subscription_url":"https://api.github.com/repos/Rise-Vision/cors-anywhere/subscription","commits_url":"https://api.github.com/repos/Rise-Vision/cors-anywhere/commits{/sha}","git_commits_url":"https://api.github.com/repos/Rise-Vision/cors-anywhere/git/commits{/sha}","comments_url":"https://api.github.com/repos/Rise-Vision/cors-anywhere/comments{/number}","issue_comment_url":"https://api.github.com/repos/Rise-Vision/cors-anywhere/issues/comments{/number}","contents_url":"https://api.github.com/repos/Rise-Vision/cors-anywhere/contents/{+path}","compare_url":"https://api.github.com/repos/Rise-Vision/cors-anywhere/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Rise-Vision/cors-anywhere/merges","archive_url":"https://api.github.com/repos/Rise-Vision/cors-anywhere/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Rise-Vision/cors-anywhere/downloads","issues_url":"https://api.github.com/repos/Rise-Vision/cors-anywhere/issues{/number}","pulls_url":"https://api.github.com/repos/Rise-Vision/cors-anywhere/pulls{/number}","milestones_url":"https://api.github.com/repos/Rise-Vision/cors-anywhere/milestones{/number}","notifications_url":"https://api.github.com/repos/Rise-Vision/cors-anywhere/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Rise-Vision/cors-anywhere/labels{/name}","releases_url":"https://api.github.com/repos/Rise-Vision/cors-anywhere/releases{/id}","deployments_url":"https://api.github.com/repos/Rise-Vision/cors-anywhere/deployments","created_at":"2016-02-25T20:00:41Z","updated_at":"2016-02-25T20:00:42Z","pushed_at":"2016-02-25T20:32:32Z","git_url":"git://github.com/Rise-Vision/cors-anywhere.git","ssh_url":"git@github.com:Rise-Vision/cors-anywhere.git","clone_url":"https://github.com/Rise-Vision/cors-anywhere.git","svn_url":"https://github.com/Rise-Vision/cors-anywhere","homepage":"","size":95,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Rob--W:master","ref":"master","sha":"e8f0e64168d7c16dd986747416445915e4d38b45","user":{"login":"Rob--W","id":1365071,"avatar_url":"https://avatars.githubusercontent.com/u/1365071?v=3","gravatar_id":"","url":"https://api.github.com/users/Rob--W","html_url":"https://github.com/Rob--W","followers_url":"https://api.github.com/users/Rob--W/followers","following_url":"https://api.github.com/users/Rob--W/following{/other_user}","gists_url":"https://api.github.com/users/Rob--W/gists{/gist_id}","starred_url":"https://api.github.com/users/Rob--W/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rob--W/subscriptions","organizations_url":"https://api.github.com/users/Rob--W/orgs","repos_url":"https://api.github.com/users/Rob--W/repos","events_url":"https://api.github.com/users/Rob--W/events{/privacy}","received_events_url":"https://api.github.com/users/Rob--W/received_events","type":"User","site_admin":false},"repo":{"id":7431133,"name":"cors-anywhere","full_name":"Rob--W/cors-anywhere","owner":{"login":"Rob--W","id":1365071,"avatar_url":"https://avatars.githubusercontent.com/u/1365071?v=3","gravatar_id":"","url":"https://api.github.com/users/Rob--W","html_url":"https://github.com/Rob--W","followers_url":"https://api.github.com/users/Rob--W/followers","following_url":"https://api.github.com/users/Rob--W/following{/other_user}","gists_url":"https://api.github.com/users/Rob--W/gists{/gist_id}","starred_url":"https://api.github.com/users/Rob--W/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rob--W/subscriptions","organizations_url":"https://api.github.com/users/Rob--W/orgs","repos_url":"https://api.github.com/users/Rob--W/repos","events_url":"https://api.github.com/users/Rob--W/events{/privacy}","received_events_url":"https://api.github.com/users/Rob--W/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Rob--W/cors-anywhere","description":"CORS Anywhere is a NodeJS reverse proxy which adds CORS headers to the proxied request.","fork":false,"url":"https://api.github.com/repos/Rob--W/cors-anywhere","forks_url":"https://api.github.com/repos/Rob--W/cors-anywhere/forks","keys_url":"https://api.github.com/repos/Rob--W/cors-anywhere/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Rob--W/cors-anywhere/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Rob--W/cors-anywhere/teams","hooks_url":"https://api.github.com/repos/Rob--W/cors-anywhere/hooks","issue_events_url":"https://api.github.com/repos/Rob--W/cors-anywhere/issues/events{/number}","events_url":"https://api.github.com/repos/Rob--W/cors-anywhere/events","assignees_url":"https://api.github.com/repos/Rob--W/cors-anywhere/assignees{/user}","branches_url":"https://api.github.com/repos/Rob--W/cors-anywhere/branches{/branch}","tags_url":"https://api.github.com/repos/Rob--W/cors-anywhere/tags","blobs_url":"https://api.github.com/repos/Rob--W/cors-anywhere/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Rob--W/cors-anywhere/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Rob--W/cors-anywhere/git/refs{/sha}","trees_url":"https://api.github.com/repos/Rob--W/cors-anywhere/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Rob--W/cors-anywhere/statuses/{sha}","languages_url":"https://api.github.com/repos/Rob--W/cors-anywhere/languages","stargazers_url":"https://api.github.com/repos/Rob--W/cors-anywhere/stargazers","contributors_url":"https://api.github.com/repos/Rob--W/cors-anywhere/contributors","subscribers_url":"https://api.github.com/repos/Rob--W/cors-anywhere/subscribers","subscription_url":"https://api.github.com/repos/Rob--W/cors-anywhere/subscription","commits_url":"https://api.github.com/repos/Rob--W/cors-anywhere/commits{/sha}","git_commits_url":"https://api.github.com/repos/Rob--W/cors-anywhere/git/commits{/sha}","comments_url":"https://api.github.com/repos/Rob--W/cors-anywhere/comments{/number}","issue_comment_url":"https://api.github.com/repos/Rob--W/cors-anywhere/issues/comments{/number}","contents_url":"https://api.github.com/repos/Rob--W/cors-anywhere/contents/{+path}","compare_url":"https://api.github.com/repos/Rob--W/cors-anywhere/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Rob--W/cors-anywhere/merges","archive_url":"https://api.github.com/repos/Rob--W/cors-anywhere/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Rob--W/cors-anywhere/downloads","issues_url":"https://api.github.com/repos/Rob--W/cors-anywhere/issues{/number}","pulls_url":"https://api.github.com/repos/Rob--W/cors-anywhere/pulls{/number}","milestones_url":"https://api.github.com/repos/Rob--W/cors-anywhere/milestones{/number}","notifications_url":"https://api.github.com/repos/Rob--W/cors-anywhere/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Rob--W/cors-anywhere/labels{/name}","releases_url":"https://api.github.com/repos/Rob--W/cors-anywhere/releases{/id}","deployments_url":"https://api.github.com/repos/Rob--W/cors-anywhere/deployments","created_at":"2013-01-03T22:08:24Z","updated_at":"2016-02-25T20:55:06Z","pushed_at":"2016-02-25T20:32:32Z","git_url":"git://github.com/Rob--W/cors-anywhere.git","ssh_url":"git@github.com:Rob--W/cors-anywhere.git","clone_url":"https://github.com/Rob--W/cors-anywhere.git","svn_url":"https://github.com/Rob--W/cors-anywhere","homepage":"","size":152,"stargazers_count":204,"watchers_count":204,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":67,"mirror_url":null,"open_issues_count":11,"forks":67,"open_issues":11,"watchers":204,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Rob--W/cors-anywhere/pulls/40"},"html":{"href":"https://github.com/Rob--W/cors-anywhere/pull/40"},"issue":{"href":"https://api.github.com/repos/Rob--W/cors-anywhere/issues/40"},"comments":{"href":"https://api.github.com/repos/Rob--W/cors-anywhere/issues/40/comments"},"review_comments":{"href":"https://api.github.com/repos/Rob--W/cors-anywhere/pulls/40/comments"},"review_comment":{"href":"https://api.github.com/repos/Rob--W/cors-anywhere/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Rob--W/cors-anywhere/pulls/40/commits"},"statuses":{"href":"https://api.github.com/repos/Rob--W/cors-anywhere/statuses/75f8e8349e01dde844d4dac84acf8e1b8eeb32c0"}}}}