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,