Skip to content

Commit

Permalink
ssl defaulting to true
Browse files Browse the repository at this point in the history
  • Loading branch information
manatlan committed Oct 12, 2024
1 parent 6913309 commit 7351c00
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion example.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion htagweb/runners.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 7351c00

Please sign in to comment.