From 7351c00fffb9dd3b0e9d229ba20795e697268c28 Mon Sep 17 00:00:00 2001 From: manatlan Date: Sat, 12 Oct 2024 18:23:45 +0200 Subject: [PATCH] ssl defaulting to true --- README.md | 1 + example.py | 2 +- htagweb/runners.py | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c2c789c..59039bf 100644 --- a/README.md +++ b/README.md @@ -61,6 +61,7 @@ The port to bind to. (default is 8000) #### ssl (bool) Indicate that "Secure flag" should be set for middleware WebServerSession cookie only !!!! +(default is True) non-sense in http_only mode. diff --git a/example.py b/example.py index 58fb239..59bb1f3 100644 --- a/example.py +++ b/example.py @@ -93,7 +93,7 @@ async def serve_kaputt(req): # **IMPORTANT** current host serving on SSL # on your localmachine, switch ssl to False !!! #/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ -app=Runner( App, debug=False, ssl=True ) +app=Runner( App, debug=False ) app.add_route("/jo", serve) app.add_route("/kaputt", serve_kaputt) diff --git a/htagweb/runners.py b/htagweb/runners.py index 2c6111f..8d61766 100644 --- a/htagweb/runners.py +++ b/htagweb/runners.py @@ -199,7 +199,7 @@ def __init__(self, host="0.0.0.0", port=8000, debug:bool=False, - ssl:bool=False, # now, Indicate that Secure flag should be set for middleware WebServerSession (cookies) + ssl:bool=True, # now, Indicate that Secure flag should be set for middleware WebServerSession (cookies) parano:bool=False, http_only:bool=False, timeout_interaction:int=60,