Deal with POSTS in ssl middleware. Closes #975.