{"comment":{"url":"https://api.github.com/repos/girder/girder/comments/10401432","html_url":"https://github.com/girder/girder/commit/0b0d2cd1341bed9bec23b2f50e02329df733bfad#commitcomment-10401432","id":10401432,"user":{"login":"jcfr","id":219043,"avatar_url":"https://avatars.githubusercontent.com/u/219043?v=3","gravatar_id":"","url":"https://api.github.com/users/jcfr","html_url":"https://github.com/jcfr","followers_url":"https://api.github.com/users/jcfr/followers","following_url":"https://api.github.com/users/jcfr/following{/other_user}","gists_url":"https://api.github.com/users/jcfr/gists{/gist_id}","starred_url":"https://api.github.com/users/jcfr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcfr/subscriptions","organizations_url":"https://api.github.com/users/jcfr/orgs","repos_url":"https://api.github.com/users/jcfr/repos","events_url":"https://api.github.com/users/jcfr/events{/privacy}","received_events_url":"https://api.github.com/users/jcfr/received_events","type":"User","site_admin":false},"position":null,"line":null,"path":"","commit_id":"0b0d2cd1341bed9bec23b2f50e02329df733bfad","created_at":"2015-03-25T22:51:11Z","updated_at":"2015-03-25T22:51:11Z","body":"In that case, may be you can do this, the `startswith` is not needed anymore.\r\n\r\n```\r\ncherrypy.request.method == 'POST' and cherrypy.request.headers.get(\r\n'Content-Type', '').split(';', 1)[0] in (\r\n    'application/x-www-form-urlencoded',\r\n    'multipart/form-data', 'text/plain'))):\r\n```"}}