Skip to content

Commit

Permalink
fix: disable openapi path (sparckles#1031)
Browse files Browse the repository at this point in the history
  • Loading branch information
sansyrox authored Nov 15, 2024
1 parent a94443d commit 5589ddf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions robyn/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,12 +208,12 @@ def set_request_header(self, key: str, value: str) -> None:
def set_response_header(self, key: str, value: str) -> None:
self.response_headers.set(key, value)

def exclude_response_headers_for(self, excluded_response_header_paths: Optional[List[str]]):
def exclude_response_headers_for(self, excluded_response_headers_paths: Optional[List[str]]):
"""
To exclude response headers from certain routes
@param exclude_paths: the paths to exclude response headers from
"""
self.excluded_response_header_paths = excluded_response_header_paths
self.excluded_response_headers_paths = excluded_response_headers_paths

def add_web_socket(self, endpoint: str, ws: WebSocket) -> None:
self.web_socket_router.add_route(endpoint, ws)
Expand Down Expand Up @@ -300,7 +300,7 @@ def start(self, host: str = "127.0.0.1", port: int = 8080, _check_port: bool = T
self.config.workers,
self.config.processes,
self.response_headers,
self.excluded_response_header_paths,
self.excluded_response_headers_paths,
open_browser,
)

Expand Down
2 changes: 1 addition & 1 deletion robyn/robyn.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ class Server:
pass
def apply_response_headers(self, headers: Headers) -> None:
pass
def set_response_headers_exclude_paths(self, excluded_response_header_paths: Optional[list[str]] = None):
def set_response_headers_exclude_paths(self, excluded_response_headers_paths: Optional[list[str]] = None):
pass

def add_route(
Expand Down

0 comments on commit 5589ddf

Please sign in to comment.