Clean up post-Hono references (#26903)
This commit is contained in:
@@ -2,7 +2,7 @@ import { deflateSync, gzipSync } from "node:zlib"
|
||||
import { Effect } from "effect"
|
||||
import { HttpBody, HttpRouter, HttpServerRequest, HttpServerResponse } from "effect/unstable/http"
|
||||
|
||||
// Mirror of Hono's compressible content-type set so wire behavior matches.
|
||||
// Keep the server's compressible content-type set stable across HTTP backend changes.
|
||||
const COMPRESSIBLE_CONTENT_TYPE_REGEX =
|
||||
/^\s*(?:text\/(?!event-stream(?:[;\s]|$))[^;\s]+|application\/(?:javascript|json|xml|xml-dtd|ecmascript|dart|postscript|rtf|tar|toml|vnd\.dart|vnd\.ms-fontobject|vnd\.ms-opentype|wasm|x-httpd-php|x-javascript|x-ns-proxy-autoconfig|x-sh|x-tar|x-www-form-urlencoded)|font\/(?:otf|ttf)|image\/(?:bmp|vnd\.adobe\.photoshop|vnd\.microsoft\.icon|vnd\.ms-dds|x-icon|x-ms-bmp)|message\/rfc822|model\/gltf-binary|x-shader\/x-fragment|x-shader\/x-vertex|[^;\s]+?\+(?:json|text|xml|yaml))(?:[;\s]|$)/i
|
||||
|
||||
|
||||
Reference in New Issue
Block a user