try this trick from https://github.com/rkh/rack-protection/blob/master/.travis.yml