Skip to content

Conversation

@sampsapenna
Copy link
Member

Description

Error middleware was overwriting the status codes set in
initialization of the aiohttp.web.FileResponse. Thus, a
custom "FileResponse" was made to fix this, while additionally
preventing the caching of the error responses with correct
headers.

Related issues

Fixes #19

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Changes Made

  • Fix middleware incorrect status codes when handling errors.
  • Prevent error responses from being cached.

Testing

  • Tests do not apply.

Error middleware was overwriting the status codes set in
initialization of the aiohttp.web.FileResponse. Thus, a
custom "FileResponse" was made to fix this, while additionally
preventing the caching of the error responses with correct
headers.
@sampsapenna sampsapenna self-assigned this Aug 21, 2019
@sampsapenna sampsapenna merged commit 14f88c7 into devel Aug 21, 2019
@sampsapenna sampsapenna deleted the bugfix/listing-fetch-break-after-project-change branch August 21, 2019 12:57
sampsapenna pushed a commit that referenced this pull request Jul 27, 2021
sampsapenna pushed a commit that referenced this pull request Jul 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants