Skip to content

Commit

Permalink
fix http_only/parano
Browse files Browse the repository at this point in the history
  • Loading branch information
manatlan committed Oct 4, 2023
1 parent 975f141 commit b24576f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions htagweb/appserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,24 +243,24 @@ def __init__(self,

if obj:
async def handleHome(request):
return await self.handle(request,obj,recreate=False,http_only=http_only,parano=parano)
return await self.handle(request,obj)
self.add_route( '/', handleHome )

# new method
async def handle(self, request,
obj:"htag.Tag class|fqn",
recreate:bool=False,
http_only:"bool|None"=False,
parano:"bool|None"=False ) -> HTMLResponse:
http_only:"bool|None"=None,
parano:"bool|None"=None ) -> HTMLResponse:
return await self.serve(request,obj,recreate,http_only,parano)


# DEPRECATED
async def serve(self, request,
obj:"htag.Tag class|fqn",
force:bool=False,
http_only:"bool|None"=False,
parano:"bool|None"=False ) -> HTMLResponse:
http_only:"bool|None"=None,
parano:"bool|None"=None ) -> HTMLResponse:

# take default behaviour if not present
is_parano = self.parano if parano is None else parano
Expand Down

0 comments on commit b24576f

Please sign in to comment.