{"action":"created","issue":{"url":"https://api.github.com/repos/adlnet/xAPI-Spec/issues/513","labels_url":"https://api.github.com/repos/adlnet/xAPI-Spec/issues/513/labels{/name}","comments_url":"https://api.github.com/repos/adlnet/xAPI-Spec/issues/513/comments","events_url":"https://api.github.com/repos/adlnet/xAPI-Spec/issues/513/events","html_url":"https://github.com/adlnet/xAPI-Spec/issues/513","id":46327096,"number":513,"title":"Attachments: \"contentType\" must match part's \"Content-Type\"","user":{"login":"brianjmiller","id":95960,"avatar_url":"https://avatars.githubusercontent.com/u/95960?v=3","gravatar_id":"","url":"https://api.github.com/users/brianjmiller","html_url":"https://github.com/brianjmiller","followers_url":"https://api.github.com/users/brianjmiller/followers","following_url":"https://api.github.com/users/brianjmiller/following{/other_user}","gists_url":"https://api.github.com/users/brianjmiller/gists{/gist_id}","starred_url":"https://api.github.com/users/brianjmiller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brianjmiller/subscriptions","organizations_url":"https://api.github.com/users/brianjmiller/orgs","repos_url":"https://api.github.com/users/brianjmiller/repos","events_url":"https://api.github.com/users/brianjmiller/events{/privacy}","received_events_url":"https://api.github.com/users/brianjmiller/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/adlnet/xAPI-Spec/labels/patch","name":"patch","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2014-10-20T21:20:59Z","updated_at":"2015-01-21T20:25:31Z","closed_at":null,"body":"The spec in 4.1.11 says:\r\n\r\n> SHOULD include a Content-type field in each part's header, for the first part this MUST be \"application/json\".\r\n\r\nAnd we were discussing whether there should be a MUST added such that it states that the content type in the headers of the part *MUST* match the content type as is provided in the statement metadata. There isn't really any other rational choice as far as I know, but being explicit about it, well, makes it explicit."},"comment":{"url":"https://api.github.com/repos/adlnet/xAPI-Spec/issues/comments/70914612","html_url":"https://github.com/adlnet/xAPI-Spec/issues/513#issuecomment-70914612","issue_url":"https://api.github.com/repos/adlnet/xAPI-Spec/issues/513","id":70914612,"user":{"login":"fugu13","id":51579,"avatar_url":"https://avatars.githubusercontent.com/u/51579?v=3","gravatar_id":"","url":"https://api.github.com/users/fugu13","html_url":"https://github.com/fugu13","followers_url":"https://api.github.com/users/fugu13/followers","following_url":"https://api.github.com/users/fugu13/following{/other_user}","gists_url":"https://api.github.com/users/fugu13/gists{/gist_id}","starred_url":"https://api.github.com/users/fugu13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fugu13/subscriptions","organizations_url":"https://api.github.com/users/fugu13/orgs","repos_url":"https://api.github.com/users/fugu13/repos","events_url":"https://api.github.com/users/fugu13/events{/privacy}","received_events_url":"https://api.github.com/users/fugu13/received_events","type":"User","site_admin":false},"created_at":"2015-01-21T20:25:31Z","updated_at":"2015-01-21T20:25:31Z","body":"Thinking about it more, I think MUST is pretty important. If they aren't required to match, then we reach the odd situation where clients will just have to decide (probably arbitrarily) which one to trust, which could lead to very inconsistent behavior; that doesn't make any sense as they're both supposed to be the content-type for the content, and the only way to enforce that sensibly is to require they match exactly."}}