@sveltejs/kit 1.15.1 → 1.15.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sveltejs/kit",
3
- "version": "1.15.1",
3
+ "version": "1.15.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/sveltejs/kit",
package/src/utils/http.js CHANGED
@@ -59,9 +59,9 @@ export function negotiate(accept, types) {
59
59
  * @param {Request} request
60
60
  * @param {...string} types
61
61
  */
62
- export function is_content_type(request, ...types) {
62
+ function is_content_type(request, ...types) {
63
63
  const type = request.headers.get('content-type')?.split(';', 1)[0].trim() ?? '';
64
- return types.includes(type);
64
+ return types.includes(type.toLowerCase());
65
65
  }
66
66
 
67
67
  /**