Skip to content

Commit

Permalink
Merge branch 'master' into pathlike
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinastone committed Jul 24, 2020
2 parents a9c423c + aee9106 commit c2c4a8b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/websockets.md
Expand Up @@ -39,7 +39,7 @@ For example: `websocket.headers['sec-websocket-version']`

#### Query Parameters

Headers are exposed as an immutable multi-dict.
Query parameters are exposed as an immutable multi-dict.

For example: `websocket.query_params['search']`

Expand Down
2 changes: 1 addition & 1 deletion starlette/endpoints.py
Expand Up @@ -43,7 +43,7 @@ async def method_not_allowed(self, request: Request) -> Response:

class WebSocketEndpoint:

encoding = None # May be "text", "bytes", or "json".
encoding: typing.Optional[str] = None # May be "text", "bytes", or "json".

def __init__(self, scope: Scope, receive: Receive, send: Send) -> None:
assert scope["type"] == "websocket"
Expand Down

0 comments on commit c2c4a8b

Please sign in to comment.