Skip to content

Commit

Permalink
upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
sigmarkarl committed Oct 1, 2024
1 parent b7040b3 commit 4195292
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions jupyter_server/base/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1226,18 +1226,6 @@ def get(self, path: str, include_body: bool = True) -> Coroutine[Any, Any, None]
return super().get(path, include_body)


class PublicStaticFileHandler(web.StaticFileHandler):
"""Same as web.StaticFileHandler, but decorated to acknowledge that auth is not required."""

@allow_unauthenticated
def head(self, path: str) -> Awaitable[None]:
return super().head(path)

@allow_unauthenticated
def get(self, path: str, include_body: bool = True) -> Coroutine[Any, Any, None]:
return super().get(path, include_body)


# -----------------------------------------------------------------------------
# URL pattern fragments for reuse
# -----------------------------------------------------------------------------
Expand Down

0 comments on commit 4195292

Please sign in to comment.