[#7787] get rid of weird problems where error handling and ssl redirects collide
2 files changed