Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

@mitchknife
Copy link
Contributor

@mitchknife mitchknife commented Dec 11, 2025

  • Introduced sendResponse and sendErrorResponse to simplify common cases.
  • Being explicit about Content-Type header.
  • Cleaned up code flow
  • Cleaned up error handling and messages.

This also reverts the change that made returned values explicit from version 3.7.0. That change didn't actually improve the snyk reports. Being explicit about the Content-Type header was the trick 👍🏼

- Introduced `sendResponse` and `sendErrorResponse` to simplify common cases.
- Being explicit about Content-Type header.
- Cleaned up code flow
- Cleaned up error handling and messages.
@mitchknife mitchknife merged commit 32b2d85 into FacilityApi:master Dec 11, 2025
3 checks passed
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.

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.