Skip to content

Commit

Permalink
Merge pull request #1 from cemrehancavdar/colon
Browse files Browse the repository at this point in the history
fix: missing colon
  • Loading branch information
cemrehancavdar authored Oct 30, 2024
2 parents ac90501 + 8559239 commit 699dc80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion litestar/middleware/response_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ async def wrapped_send(message: Message) -> None:
elif value_or_default(connection_state.do_cache, False):
messages.append(message)

if messages and message["type"] == HTTP_RESPONSE_BODY and not message.get('more_body')
if messages and message["type"] == HTTP_RESPONSE_BODY and not message.get('more_body'):
key = (route_handler.cache_key_builder or self.config.key_builder)(Request(scope))
store = self.config.get_store_from_app(scope["app"])
await store.set(key, encode_msgpack(messages), expires_in=expires_in)
Expand Down

0 comments on commit 699dc80

Please sign in to comment.