Revert "test #178: Do not check referrer for requests over SSL"

This reverts commit ce8b7fecd82e8313a06774b1aa3ff2174e3bd2ba.