-
-
Notifications
You must be signed in to change notification settings - Fork 933
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: replace obsolete JS media type (#2111)
* Replace obsolete JS media type * feat(response): prefer `falcon.MEDIA_*` constants to stdlib's `mimetypes` * feat(static): add static media type mapping for `.mjs` --------- Co-authored-by: Vytautas Liuolia <vytautas.liuolia@gmail.com>
- Loading branch information
Showing
4 changed files
with
46 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Following the recommendation from | ||
`RFC 9239 <https://www.rfc-editor.org/rfc/rfc9239>`__, the | ||
:ref:`MEDIA_JS <media_type_constants>` constant has been updated to | ||
``text/javascript``. Furthermore, this and other media type constants are now | ||
preferred to the stdlib's :mod:`mimetypes` for the initialization of | ||
:attr:`~falcon.ResponseOptions.static_media_types`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters