File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
packages/server/src/handlers Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 11import stream from 'node:stream'
22
33import { BaseHandler } from './BaseHandler'
4- import { ERRORS , Upload } from '@tus/utils'
4+ import { ERRORS , type Upload } from '@tus/utils'
55
66import type http from 'node:http'
77import type { RouteHandler } from '../types'
@@ -20,6 +20,7 @@ export class GetHandler extends BaseHandler {
2020 * See: https://datatracker.ietf.org/doc/html/rfc1341 (Page 6)
2121 */
2222 reMimeType =
23+ // biome-ignore lint/suspicious/noControlCharactersInRegex: it's fine
2324 / ^ (?: a p p l i c a t i o n | a u d i o | e x a m p l e | f o n t | h a p t i c s | i m a g e | m e s s a g e | m o d e l | m u l t i p a r t | t e x t | v i d e o | x - (?: [ 0 - 9 A - Z a - z ! # $ % & ' * + . ^ _ ` | ~ - ] + ) ) \/ ( [ 0 - 9 A - Z a - z ! # $ % & ' * + . ^ _ ` | ~ - ] + ) ( (?: [ ] * ; [ ] * [ 0 - 9 A - Z a - z ! # $ % & ' * + . ^ _ ` | ~ - ] + = (?: [ 0 - 9 A - Z a - z ! # $ % & ' * + . ^ _ ` | ~ - ] + | " (?: [ ^ " \\ ] | \. ) * " ) ) * ) $ /
2425
2526 /**
You can’t perform that action at this time.
0 commit comments