{"action":"created","issue":{"url":"https://api.github.com/repos/square/okhttp/issues/2604","repository_url":"https://api.github.com/repos/square/okhttp","labels_url":"https://api.github.com/repos/square/okhttp/issues/2604/labels{/name}","comments_url":"https://api.github.com/repos/square/okhttp/issues/2604/comments","events_url":"https://api.github.com/repos/square/okhttp/issues/2604/events","html_url":"https://github.com/square/okhttp/issues/2604","id":158558684,"number":2604,"title":"Multipart - how to disable Content-Length for a part?","user":{"login":"rafakob","id":6924434,"avatar_url":"https://avatars.githubusercontent.com/u/6924434?v=3","gravatar_id":"","url":"https://api.github.com/users/rafakob","html_url":"https://github.com/rafakob","followers_url":"https://api.github.com/users/rafakob/followers","following_url":"https://api.github.com/users/rafakob/following{/other_user}","gists_url":"https://api.github.com/users/rafakob/gists{/gist_id}","starred_url":"https://api.github.com/users/rafakob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rafakob/subscriptions","organizations_url":"https://api.github.com/users/rafakob/orgs","repos_url":"https://api.github.com/users/rafakob/repos","events_url":"https://api.github.com/users/rafakob/events{/privacy}","received_events_url":"https://api.github.com/users/rafakob/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-06-05T15:07:49Z","updated_at":"2016-06-10T23:34:18Z","closed_at":"2016-06-10T23:34:18Z","body":"Question:\r\nHow to disable `Content-Length` header for a part? I need to do this because an API that I'm using does not allow it (and I can't do anything about it).\r\n\r\nI'm sure that the problem is that header, because I've tried to upload a file manually using `HttpURLConnection` and it works great without `Content-Length`, and it fails immediately when I add it.\r\n\r\nI've tried to add interceptor to the request (both `addInterceptor` and `addNetworkInterceptor`) in order to remove unwanted header. But it is not here (I can see only `Content-Disposition`). Is there another way to disable it?\r\n\r\nMentioning\r\nhttps://github.com/square/okhttp/issues/2138"},"comment":{"url":"https://api.github.com/repos/square/okhttp/issues/comments/225319714","html_url":"https://github.com/square/okhttp/issues/2604#issuecomment-225319714","issue_url":"https://api.github.com/repos/square/okhttp/issues/2604","id":225319714,"user":{"login":"swankjesse","id":133019,"avatar_url":"https://avatars.githubusercontent.com/u/133019?v=3","gravatar_id":"","url":"https://api.github.com/users/swankjesse","html_url":"https://github.com/swankjesse","followers_url":"https://api.github.com/users/swankjesse/followers","following_url":"https://api.github.com/users/swankjesse/following{/other_user}","gists_url":"https://api.github.com/users/swankjesse/gists{/gist_id}","starred_url":"https://api.github.com/users/swankjesse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swankjesse/subscriptions","organizations_url":"https://api.github.com/users/swankjesse/orgs","repos_url":"https://api.github.com/users/swankjesse/repos","events_url":"https://api.github.com/users/swankjesse/events{/privacy}","received_events_url":"https://api.github.com/users/swankjesse/received_events","type":"User","site_admin":false},"created_at":"2016-06-10T23:34:18Z","updated_at":"2016-06-10T23:34:18Z","body":"You’re the only one. You should petition the owner of the server who has this limitation to fix their server so we don’t have to fix our client."}}
{"actor":{"display_login":"swankjesse"}}