{"action":"opened","issue":{"url":"https://api.github.com/repos/olsh/curl-to-csharp/issues/1","repository_url":"https://api.github.com/repos/olsh/curl-to-csharp","labels_url":"https://api.github.com/repos/olsh/curl-to-csharp/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/olsh/curl-to-csharp/issues/1/comments","events_url":"https://api.github.com/repos/olsh/curl-to-csharp/issues/1/events","html_url":"https://github.com/olsh/curl-to-csharp/issues/1","id":335132661,"node_id":"MDU6SXNzdWUzMzUxMzI2NjE=","number":1,"title":"\"Upload Files\" example on https://curl.olsh.me/ does nothing with `multipartContent`","user":{"login":"ascott18","id":5017521,"node_id":"MDQ6VXNlcjUwMTc1MjE=","avatar_url":"https://avatars3.githubusercontent.com/u/5017521?v=4","gravatar_id":"","url":"https://api.github.com/users/ascott18","html_url":"https://github.com/ascott18","followers_url":"https://api.github.com/users/ascott18/followers","following_url":"https://api.github.com/users/ascott18/following{/other_user}","gists_url":"https://api.github.com/users/ascott18/gists{/gist_id}","starred_url":"https://api.github.com/users/ascott18/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ascott18/subscriptions","organizations_url":"https://api.github.com/users/ascott18/orgs","repos_url":"https://api.github.com/users/ascott18/repos","events_url":"https://api.github.com/users/ascott18/events{/privacy}","received_events_url":"https://api.github.com/users/ascott18/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-23T21:34:52Z","updated_at":"2018-06-23T21:34:52Z","closed_at":null,"author_association":"NONE","body":"Current code being generated as of posting:\r\n\r\n``` c#\r\nvar handler = new HttpClientHandler();\r\nhandler.UseCookies = false; \r\n\r\nusing (var httpClient = new HttpClient(handler))\r\n{\r\n    using (var request = new HttpRequestMessage(new HttpMethod(\"POST\"), \"https://example.com/upload\"))\r\n    {\r\n        var multipartContent = new MultipartContent();\r\n        multipartContent.Add(new ByteArrayContent(File.ReadAllBytes(\"file1.txt\")));\r\n        multipartContent.Add(new ByteArrayContent(File.ReadAllBytes(\"file2.txt\"))); \r\n\r\n        request.Headers.TryAddWithoutValidation(\"Referer\", \"https://github.com/\");\r\n        request.Headers.TryAddWithoutValidation(\"Cookie\", \"SessionId=437b27169b6b4349a388038329eeb900\"); \r\n\r\n        var response = await httpClient.SendAsync(request);\r\n    }\r\n}\r\n```\r\n\r\n`multipartContent` is created, but never used."}}
{"actor":{"display_login":"ascott18"}}