{"action":"created","issue":{"url":"https://api.github.com/repos/NuGet/Home/issues/2202","repository_url":"https://api.github.com/repos/NuGet/Home","labels_url":"https://api.github.com/repos/NuGet/Home/issues/2202/labels{/name}","comments_url":"https://api.github.com/repos/NuGet/Home/issues/2202/comments","events_url":"https://api.github.com/repos/NuGet/Home/issues/2202/events","html_url":"https://github.com/NuGet/Home/issues/2202","id":136817765,"number":2202,"title":"Recent NuGet.exe builds can't push to VSTS feeds","user":{"login":"dagood","id":12819531,"avatar_url":"https://avatars.githubusercontent.com/u/12819531?v=3","gravatar_id":"","url":"https://api.github.com/users/dagood","html_url":"https://github.com/dagood","followers_url":"https://api.github.com/users/dagood/followers","following_url":"https://api.github.com/users/dagood/following{/other_user}","gists_url":"https://api.github.com/users/dagood/gists{/gist_id}","starred_url":"https://api.github.com/users/dagood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dagood/subscriptions","organizations_url":"https://api.github.com/users/dagood/orgs","repos_url":"https://api.github.com/users/dagood/repos","events_url":"https://api.github.com/users/dagood/events{/privacy}","received_events_url":"https://api.github.com/users/dagood/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-26T21:21:53Z","updated_at":"2016-02-26T22:52:15Z","closed_at":null,"body":"When I try to push to an (authed) VSTS feed using NuGet.exe 3.4.0.665, the server returns a 400 error with a message:\r\n\r\n> Expected a single 'application/octet-stream' part named 'package'.\r\n\r\nIn earlier NuGet.exe versions (334, 531) the form data sent was:\r\n\r\n> Content-Disposition: form-data; name=\"package\"; filename=\"package\"\r\n> Content-Type: application/octet-stream\r\n\r\nNow (665) it's:\r\n\r\n> Content-Type: application/octet-stream\r\n> Content-Disposition: form-data; name=package; filename=package.nupkg; filename*=utf-8''package.nupkg\r\n\r\nI was able to modify a NuGet 655 PUT in Fiddler to match the earlier request and it went through. It seems that:\r\n\r\n* The name and filename need to be in quotes.\r\n* The filename must be \"package\", not \"package.nupkg\".\r\n* The utf-8 section cannot be present (or I don't know how to quote it right).\r\n\r\nHere's where the value is set: https://github.com/NuGet/NuGet.Client/blob/d899f4b258b60/src/NuGet.Core/NuGet.Protocol.Core.v3/Resources/PackageUpdateResource.cs#L272\r\n\r\nIf these changes were needed to make some other feed work, maybe VSTS needs to fix this on the feed side. (I can't use the earlier versions as a workaround because they aren't compatible with the specific packages I'm pushing.)\r\n\r\nThanks for the help tracking this down, @emgarten!\r\n\r\n/cc @weshaggard"},"comment":{"url":"https://api.github.com/repos/NuGet/Home/issues/comments/189515792","html_url":"https://github.com/NuGet/Home/issues/2202#issuecomment-189515792","issue_url":"https://api.github.com/repos/NuGet/Home/issues/2202","id":189515792,"user":{"login":"emgarten","id":6381138,"avatar_url":"https://avatars.githubusercontent.com/u/6381138?v=3","gravatar_id":"","url":"https://api.github.com/users/emgarten","html_url":"https://github.com/emgarten","followers_url":"https://api.github.com/users/emgarten/followers","following_url":"https://api.github.com/users/emgarten/following{/other_user}","gists_url":"https://api.github.com/users/emgarten/gists{/gist_id}","starred_url":"https://api.github.com/users/emgarten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emgarten/subscriptions","organizations_url":"https://api.github.com/users/emgarten/orgs","repos_url":"https://api.github.com/users/emgarten/repos","events_url":"https://api.github.com/users/emgarten/events{/privacy}","received_events_url":"https://api.github.com/users/emgarten/received_events","type":"User","site_admin":false},"created_at":"2016-02-26T22:52:15Z","updated_at":"2016-02-26T22:52:15Z","body":"@weshaggard it's a nuget issue, the push format should not have changed."}}