{"action":"created","issue":{"url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/5234","repository_url":"https://api.github.com/repos/CocoaPods/CocoaPods","labels_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/5234/labels{/name}","comments_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/5234/comments","events_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/5234/events","html_url":"https://github.com/CocoaPods/CocoaPods/issues/5234","id":152554174,"number":5234,"title":"pod trunk push results in 403 when referencing large zip files","user":{"login":"macmacen","id":5941560,"avatar_url":"https://avatars.githubusercontent.com/u/5941560?v=3","gravatar_id":"","url":"https://api.github.com/users/macmacen","html_url":"https://github.com/macmacen","followers_url":"https://api.github.com/users/macmacen/followers","following_url":"https://api.github.com/users/macmacen/following{/other_user}","gists_url":"https://api.github.com/users/macmacen/gists{/gist_id}","starred_url":"https://api.github.com/users/macmacen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/macmacen/subscriptions","organizations_url":"https://api.github.com/users/macmacen/orgs","repos_url":"https://api.github.com/users/macmacen/repos","events_url":"https://api.github.com/users/macmacen/events{/privacy}","received_events_url":"https://api.github.com/users/macmacen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2016-05-02T13:34:49Z","updated_at":"2016-05-02T16:00:37Z","closed_at":null,"body":"# Report\r\n\r\n## What did you do?\r\n\r\n```\r\npod --verbose trunk push <Name>.podspec\r\n```\r\n\r\n## What did you expected to happen?\r\n\r\nPodspec file pushed to cocapods trunk server.\r\n\r\n## What happened instead?\r\n\r\n403 error occurred:\r\nSource code for your Pod was not accessible to CocoaPods Trunk. Is it a private repo or behind a username/password on http?\r\n\r\nIn Pod spec file: Source references a zip file on Github added to a Github Release Tag.\r\nThe Repository is public available.\r\nThe zip file is about 170 MB.\r\nIf we use a smaller zip file (around 7 MB) than it works as expected.\r\n\r\n## Podspec\r\n\r\n```ruby\r\n...\r\ns.source = { :http => 'http://github.com/<company>/<identifier>/releases/download/<file>.zip'}\r\n...\r\n```"},"comment":{"url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/comments/216276815","html_url":"https://github.com/CocoaPods/CocoaPods/issues/5234#issuecomment-216276815","issue_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/5234","id":216276815,"user":{"login":"neonichu","id":118992,"avatar_url":"https://avatars.githubusercontent.com/u/118992?v=3","gravatar_id":"","url":"https://api.github.com/users/neonichu","html_url":"https://github.com/neonichu","followers_url":"https://api.github.com/users/neonichu/followers","following_url":"https://api.github.com/users/neonichu/following{/other_user}","gists_url":"https://api.github.com/users/neonichu/gists{/gist_id}","starred_url":"https://api.github.com/users/neonichu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neonichu/subscriptions","organizations_url":"https://api.github.com/users/neonichu/orgs","repos_url":"https://api.github.com/users/neonichu/repos","events_url":"https://api.github.com/users/neonichu/events{/privacy}","received_events_url":"https://api.github.com/users/neonichu/received_events","type":"User","site_admin":false},"created_at":"2016-05-02T16:00:37Z","updated_at":"2016-05-02T16:00:37Z","body":"What's actually happening here is that since `HEAD` doesn't succeed the `GET` fallback is being used, but there's also a 5 sec timeout in trunk, which is then being hit. In the second case, the `HEAD` request succeeds and therefore does submission to trunk.\r\n\r\nI don't have a good idea for a solution, maybe special case GH releases and already accept the initial 301 as an accessible source?"}}