{"action":"closed","issue":{"url":"https://api.github.com/repos/chrsmith/google-api-java-client/issues/641","labels_url":"https://api.github.com/repos/chrsmith/google-api-java-client/issues/641/labels{/name}","comments_url":"https://api.github.com/repos/chrsmith/google-api-java-client/issues/641/comments","events_url":"https://api.github.com/repos/chrsmith/google-api-java-client/issues/641/events","html_url":"https://github.com/chrsmith/google-api-java-client/issues/641","id":59377573,"number":641,"title":"MediaHttpUploader: direct upload should set the request headers ","user":{"login":"GoogleCodeExporter","id":9614759,"avatar_url":"https://avatars.githubusercontent.com/u/9614759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCodeExporter","html_url":"https://github.com/GoogleCodeExporter","followers_url":"https://api.github.com/users/GoogleCodeExporter/followers","following_url":"https://api.github.com/users/GoogleCodeExporter/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCodeExporter/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCodeExporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCodeExporter/subscriptions","organizations_url":"https://api.github.com/users/GoogleCodeExporter/orgs","repos_url":"https://api.github.com/users/GoogleCodeExporter/repos","events_url":"https://api.github.com/users/GoogleCodeExporter/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCodeExporter/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/chrsmith/google-api-java-client/labels/auto-migrated","name":"auto-migrated","color":"ededed"},{"url":"https://api.github.com/repos/chrsmith/google-api-java-client/labels/Component-Media","name":"Component-Media","color":"ededed"},{"url":"https://api.github.com/repos/chrsmith/google-api-java-client/labels/Milestone-Version1.13.0","name":"Milestone-Version1.13.0","color":"ededed"},{"url":"https://api.github.com/repos/chrsmith/google-api-java-client/labels/Priority-High","name":"Priority-High","color":"ededed"},{"url":"https://api.github.com/repos/chrsmith/google-api-java-client/labels/Type-Enhancement","name":"Type-Enhancement","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-01T04:15:08Z","updated_at":"2015-03-01T04:15:08Z","closed_at":"2015-03-01T04:15:08Z","body":"```\nExternal references, such as a standards document, or specification?\n\nhttp://javadoc.google-api-java-client.googlecode.com/hg/1.11.0-beta/com/google/a\npi/client/googleapis/media/MediaHttpUploader.html\n\nhttp://javadoc.google-api-java-client.googlecode.com/hg/1.11.0-beta/com/google/a\npi/client/googleapis/media/MediaHttpUploader.html#setDirectUploadEnabled(boolean\n)\n\nhttp://javadoc.google-api-java-client.googlecode.com/hg/1.11.0-beta/com/google/a\npi/client/googleapis/media/MediaHttpUploader.html#setInitiationHeaders(com.googl\ne.api.client.googleapis.GoogleHeaders)\n\nJava environments (e.g. Java 6, Android 2.3, App Engine, or All)?\n\nAll\n\nPlease describe the feature requested.\n\nWhen doing resumable media upload, I can call setInitiationHeaders to provide \narbitrary headers to add to the metadata request.  This enables the ability for \nexample to add subscriptions headers.\n\nHowever, there is no way to supply additional headers when \nsetDirectUploadEnabled(true), so there is no way for example to subscribe while \ndoing direct media upload.\n\nThis feature request is to use the same initiation headers when \nsetDirectUploadEnabled(true).  Alternatively, provide some other way to set \nthose headers.\n```\n\nOriginal issue reported on code.google.com by `yan...@google.com` on 23 Oct 2012 at 6:49"}}