jaspr icon indicating copy to clipboard operation
jaspr copied to clipboard

fixes custom body responses having a html extension

Open Lexedia opened this issue 1 month ago โ€ข 4 comments

Description

This is a followup on #597 that sets an approximate extension when using a custom body response.

Type of Change

  • ๐Ÿ› ๏ธ Bug fix

Ready Checklist

  • [x] I've read the Contribution Guide.
  • [ ] In case this PR changes one of the core packages, I've modified the respective CHANGELOG.md file using the semantic_changelog format.
  • [ ] I updated/added relevant documentation (doc comments with ///).
  • [ ] I added myself to the AUTHORS file (optional, if you want to).

Lexedia avatar Nov 16 '25 22:11 Lexedia

To view this pull requests documentation preview, visit the following URL:

docs.page/schultek/jaspr~654

Documentation is deployed and generated using docs.page.

docs-page[bot] avatar Nov 16 '25 22:11 docs-page[bot]

Package Version Report

The following packages have been updated: jaspr_test : 0.21.7 -> 0.22.0 jaspr : 0.21.7 -> 0.22.0 jaspr_builder : 0.21.7 -> 0.22.0 jaspr_cli : 0.21.7 -> 0.22.0 jaspr_serverpod : 0.5.8 -> 0.6.0 jaspr_router : 0.8.0 -> 0.8.1 jaspr_content : 0.4.4 -> 0.4.5 jaspr_flutter_embed : 0.4.9 -> 0.4.10 jaspr_riverpod : 0.4.1 -> 0.4.2

github-actions[bot] avatar Nov 16 '25 22:11 github-actions[bot]

Can you elaborate why this is needed?

You can already define Routes with an extension, e.g. Route(path: 'some/file.json', ...).

schultek avatar Nov 17 '25 09:11 schultek

Well, it was mostly for routes without an extension set, although forcing one can also work indeed.

Tbh, it was mostly my fried brain at 2 o'clock that decided to make this PR

Lexedia avatar Nov 17 '25 11:11 Lexedia