mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Add request body limit
This commit is contained in:
@@ -3,6 +3,10 @@ import { buildAbsoluteFixturePath, root } from '../miscs/miscs'
|
||||
import { isAbsolute, join } from 'path'
|
||||
import { parse } from 'url'
|
||||
|
||||
function get4KFileUrl () {
|
||||
return 'https://download.cpy.re/peertube/4k_file.txt'
|
||||
}
|
||||
|
||||
function makeRawRequest (url: string, statusCodeExpected?: number, range?: string) {
|
||||
const { host, protocol, pathname } = parse(url)
|
||||
|
||||
@@ -166,6 +170,7 @@ function updateAvatarRequest (options: {
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
export {
|
||||
get4KFileUrl,
|
||||
makeHTMLRequest,
|
||||
makeGetRequest,
|
||||
makeUploadRequest,
|
||||
|
||||
Reference in New Issue
Block a user