AxisCommunications / backstage-plugins

Backstage Plugins Created by Axis Communications
MIT License
32 stars 17 forks source link

Fix 500 Cannot set headers after they are sent to the client #135

Closed fridajac closed 6 months ago

fridajac commented 6 months ago

Describe your changes

After Readme backend encountered a 500 status error when attempting to fetch the README file, an error was displayed about the headers could not be set after they had been sent to the client.

This has been fixed by replacing the break statements with return statements within the README_TYPES loop.

Issue ticket number and link

Checklist before requesting a review

changeset-bot[bot] commented 6 months ago

🦋 Changeset detected

Latest commit: 8c45f24452e1c6d3b6d7a1cc3c38b1f3f68d04f8

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages | Name | Type | | ------------------------------------- | ----- | | @axis-backstage/plugin-readme-backend | Patch | | backend | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR