Browse Source

redirecting to root after email report

main
Holger Frey 7 years ago
parent
commit
8ca83059a4
  1. 3
      honeypot/__init__.py

3
honeypot/__init__.py

@ -3,6 +3,7 @@ import pickle @@ -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): @@ -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):

Loading…
Cancel
Save