{"action":"created","issue":{"url":"https://api.github.com/repos/majkinetor/au/issues/164","repository_url":"https://api.github.com/repos/majkinetor/au","labels_url":"https://api.github.com/repos/majkinetor/au/issues/164/labels{/name}","comments_url":"https://api.github.com/repos/majkinetor/au/issues/164/comments","events_url":"https://api.github.com/repos/majkinetor/au/issues/164/events","html_url":"https://github.com/majkinetor/au/issues/164","id":358730801,"node_id":"MDU6SXNzdWUzNTg3MzA4MDE=","number":164,"title":"Can't add Referer header.","user":{"login":"jack1142","id":6032823,"node_id":"MDQ6VXNlcjYwMzI4MjM=","avatar_url":"https://avatars0.githubusercontent.com/u/6032823?v=4","gravatar_id":"","url":"https://api.github.com/users/jack1142","html_url":"https://github.com/jack1142","followers_url":"https://api.github.com/users/jack1142/followers","following_url":"https://api.github.com/users/jack1142/following{/other_user}","gists_url":"https://api.github.com/users/jack1142/gists{/gist_id}","starred_url":"https://api.github.com/users/jack1142/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jack1142/subscriptions","organizations_url":"https://api.github.com/users/jack1142/orgs","repos_url":"https://api.github.com/users/jack1142/repos","events_url":"https://api.github.com/users/jack1142/events{/privacy}","received_events_url":"https://api.github.com/users/jack1142/received_events","type":"User","site_admin":false},"labels":[{"id":328881057,"node_id":"MDU6TGFiZWwzMjg4ODEwNTc=","url":"https://api.github.com/repos/majkinetor/au/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-09-10T18:00:31Z","updated_at":"2018-09-11T18:28:59Z","closed_at":"2018-09-11T16:25:27Z","author_association":"NONE","body":"Hi,\r\nI wanted to add $Latest.Options.Headers property, so I could validate URL, but this doesn't work with Referer header which is restricted and can be only modified using correct property:\r\n\r\n```\r\nThe 'Referer' header must be modified using the appropriate property or method\r\n```\r\n\r\nMore info can be found here: https://stackoverflow.com/a/4752359\r\n\r\nFrom what I see, I think adding property `$Latest.Options.Referer` should be enough. We could just simply set `$request.referer` to `$Latest.Options.Referer` in `request()` function.\r\nI can send a PR (although I'm not writing in PowerShell, so adding one line is the most I can do here), but I just want to make sure, if I'm not missing something and if it's okay to add another property to `$Latest.Options` as you may want to add it somewhere else."},"comment":{"url":"https://api.github.com/repos/majkinetor/au/issues/comments/420373872","html_url":"https://github.com/majkinetor/au/issues/164#issuecomment-420373872","issue_url":"https://api.github.com/repos/majkinetor/au/issues/164","id":420373872,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMDM3Mzg3Mg==","user":{"login":"AdmiringWorm","id":1474648,"node_id":"MDQ6VXNlcjE0NzQ2NDg=","avatar_url":"https://avatars3.githubusercontent.com/u/1474648?v=4","gravatar_id":"","url":"https://api.github.com/users/AdmiringWorm","html_url":"https://github.com/AdmiringWorm","followers_url":"https://api.github.com/users/AdmiringWorm/followers","following_url":"https://api.github.com/users/AdmiringWorm/following{/other_user}","gists_url":"https://api.github.com/users/AdmiringWorm/gists{/gist_id}","starred_url":"https://api.github.com/users/AdmiringWorm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AdmiringWorm/subscriptions","organizations_url":"https://api.github.com/users/AdmiringWorm/orgs","repos_url":"https://api.github.com/users/AdmiringWorm/repos","events_url":"https://api.github.com/users/AdmiringWorm/events{/privacy}","received_events_url":"https://api.github.com/users/AdmiringWorm/received_events","type":"User","site_admin":false},"created_at":"2018-09-11T18:28:59Z","updated_at":"2018-09-11T18:28:59Z","author_association":"CONTRIBUTOR","body":"@majkinetor thanks to the changes you added in https://github.com/majkinetor/au/commit/e8e9a29e77f8130215345812b1942cd55fab0366 we got the following error in the core team packages repository for almost every package:\r\n```\r\nCan't validate URL\r\nException calling \"IsRestricted\" with \"1\" argument(s): \"The parameter 'name' cannot be an empty string.\r\nParameter name: name\":https://c.1password.com/dist/1P/win6/1PasswordSetup-7.2.576.exe\r\n```\r\n\r\nPretty much the same error for all packages, except for the url specified.\r\nGist: https://gist.github.com/choco-bot/a14b1e5bfaf70839b338eb1ab7f8226f"}}
{"actor":{"display_login":"AdmiringWorm"}}