From 8ca83059a402c0fd5f51ea282d9184a77e11d945 Mon Sep 17 00:00:00 2001 From: Holger Frey Date: Wed, 30 May 2018 12:56:25 +0200 Subject: [PATCH] redirecting to root after email report --- honeypot/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/honeypot/__init__.py b/honeypot/__init__.py index 847e352..98ce314 100644 --- a/honeypot/__init__.py +++ b/honeypot/__init__.py @@ -3,6 +3,7 @@ import pickle import re from collections import OrderedDict +from pyramid.httpexceptions import HTTPFound from pyramid.config import Configurator from pyramid.response import Response from pyramid.view import view_config @@ -126,7 +127,7 @@ def the_view(context, request): ) request.mailer.send_immediately(message) - return Response(body=body, content_type='text/plain') + return HTTPFound('/') def main(global_config, **settings):