{"action":"opened","issue":{"url":"https://api.github.com/repos/zom/Zom-Android/issues/66","labels_url":"https://api.github.com/repos/zom/Zom-Android/issues/66/labels{/name}","comments_url":"https://api.github.com/repos/zom/Zom-Android/issues/66/comments","events_url":"https://api.github.com/repos/zom/Zom-Android/issues/66/events","html_url":"https://github.com/zom/Zom-Android/issues/66","id":127809472,"number":66,"title":"OTR-Data chunk length incompatible sending from Android to iOS","user":{"login":"davidchiles","id":309772,"avatar_url":"https://avatars.githubusercontent.com/u/309772?v=3","gravatar_id":"","url":"https://api.github.com/users/davidchiles","html_url":"https://github.com/davidchiles","followers_url":"https://api.github.com/users/davidchiles/followers","following_url":"https://api.github.com/users/davidchiles/following{/other_user}","gists_url":"https://api.github.com/users/davidchiles/gists{/gist_id}","starred_url":"https://api.github.com/users/davidchiles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidchiles/subscriptions","organizations_url":"https://api.github.com/users/davidchiles/orgs","repos_url":"https://api.github.com/users/davidchiles/repos","events_url":"https://api.github.com/users/davidchiles/events{/privacy}","received_events_url":"https://api.github.com/users/davidchiles/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-20T23:27:10Z","updated_at":"2016-01-20T23:27:10Z","closed_at":null,"body":"Looks like in 62786b17b9650b86f50d59aa0af869d2e28b90a6 @n8fr8  changed the `MAX_CHUNK_LENGTH` to be half what it was previously. We've always sent our `GET` requests using [`16384`](https://github.com/ChatSecure/OTRKit/blob/master/OTRKit/OTRData/OTRDataHandler.m#L31) as the maximum chunk length. So for any file greater than `8192` bytes we get:\r\n```\r\nHTTP/1.1 400 Range must be at most 8192\r\nRequest-Id: DF9BC14C-3557-4139-9465-6ADE4F494D68\r\n```\r\n\r\nThe [spec](https://dev.guardianproject.info/projects/gibberbot/wiki/OTRDATA_Specifications) says\r\n    \r\n    The maximum packet size is 65535.\r\n\r\nWhat's the true maximum chunk length? Why was it changed?"}}