added guards for content-type, as elastic beanstalk insisted my html was plaintest