Set correct data-type based on the Content-Type header set by the app
Merge pull request #3 from ammojamo/master

data-type is always 'text/html'