Skip to content

Commit

Permalink
reset the __eq__ and __hash__ to allow WebSockets to be added to …
Browse files Browse the repository at this point in the history
…sets
  • Loading branch information
graingert committed Sep 6, 2020
1 parent b95acea commit 3cdc1a5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions starlette/requests.py
Expand Up @@ -73,6 +73,9 @@ def __iter__(self) -> typing.Iterator[str]:
def __len__(self) -> int:
return len(self.scope)

__eq__ = object.__eq__
__hash__ = object.__hash__

@property
def app(self) -> typing.Any:
return self.scope["app"]
Expand Down

0 comments on commit 3cdc1a5

Please sign in to comment.