{"action":"created","issue":{"url":"https://api.github.com/repos/eapowertools/qrs-interact/issues/38","repository_url":"https://api.github.com/repos/eapowertools/qrs-interact","labels_url":"https://api.github.com/repos/eapowertools/qrs-interact/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/eapowertools/qrs-interact/issues/38/comments","events_url":"https://api.github.com/repos/eapowertools/qrs-interact/issues/38/events","html_url":"https://github.com/eapowertools/qrs-interact/issues/38","id":188782111,"number":38,"title":"Bugs in UseCookie, UpdateVirtualProxyPrefix and generateBasePath","user":{"login":"goldbergjeffrey","id":8709292,"avatar_url":"https://avatars.githubusercontent.com/u/8709292?v=3","gravatar_id":"","url":"https://api.github.com/users/goldbergjeffrey","html_url":"https://github.com/goldbergjeffrey","followers_url":"https://api.github.com/users/goldbergjeffrey/followers","following_url":"https://api.github.com/users/goldbergjeffrey/following{/other_user}","gists_url":"https://api.github.com/users/goldbergjeffrey/gists{/gist_id}","starred_url":"https://api.github.com/users/goldbergjeffrey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goldbergjeffrey/subscriptions","organizations_url":"https://api.github.com/users/goldbergjeffrey/orgs","repos_url":"https://api.github.com/users/goldbergjeffrey/repos","events_url":"https://api.github.com/users/goldbergjeffrey/events{/privacy}","received_events_url":"https://api.github.com/users/goldbergjeffrey/received_events","type":"User","site_admin":false},"labels":[{"id":395661537,"url":"https://api.github.com/repos/eapowertools/qrs-interact/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-11T15:18:42Z","updated_at":"2016-12-01T23:20:10Z","closed_at":null,"body":"```\r\nthis.UseCookie = function (userCookie) {\r\n        console.log(userCookie);\r\n        requestDefaultParams.headers.Cookie = userCookie;\r\n        delete requestDefaults.headers['X-Qlik-User'];  **This needs to be requestDefaultParams.headers***\r\n        requestDefaults = request.defaults(requestDefaultParams);\r\n    };\r\n```\r\n\r\n```\r\nthis.UpdateVirtualProxyPrefix = function (vProxyPrefix) {\r\n        basePath = generateBasePath(hostname, portNumber, vProxyPrefix); **When using a virtual proxy prefix the portnumber is not used**\r\n    }\r\n```\r\n\r\n```\r\nreturn (newHost.startsWith('http') ? newHost : \"https://\" + newHost) +\r\n            (port == \"\" ? \"\" : newVirtualProxy != \"\" ? \"\" : \":\" + port) +\r\n            (newVirtualProxy == \"\" ? \"\" : \"/\" + newVirtualProxy) + **An extra slash is being added here because it is added earlier**\r\n            \"/qrs\";\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/eapowertools/qrs-interact/issues/comments/264326224","html_url":"https://github.com/eapowertools/qrs-interact/issues/38#issuecomment-264326224","issue_url":"https://api.github.com/repos/eapowertools/qrs-interact/issues/38","id":264326224,"user":{"login":"jparis","id":3062159,"avatar_url":"https://avatars.githubusercontent.com/u/3062159?v=3","gravatar_id":"","url":"https://api.github.com/users/jparis","html_url":"https://github.com/jparis","followers_url":"https://api.github.com/users/jparis/followers","following_url":"https://api.github.com/users/jparis/following{/other_user}","gists_url":"https://api.github.com/users/jparis/gists{/gist_id}","starred_url":"https://api.github.com/users/jparis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jparis/subscriptions","organizations_url":"https://api.github.com/users/jparis/orgs","repos_url":"https://api.github.com/users/jparis/repos","events_url":"https://api.github.com/users/jparis/events{/privacy}","received_events_url":"https://api.github.com/users/jparis/received_events","type":"User","site_admin":false},"created_at":"2016-12-01T23:20:10Z","updated_at":"2016-12-01T23:20:10Z","body":"can I close this @goldbergjeffrey ?"}}
{"actor":{"display_login":"jparis"}}