aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/extra-utils/requests
diff options
context:
space:
mode:
Diffstat (limited to 'shared/extra-utils/requests')
-rw-r--r--shared/extra-utils/requests/requests.ts5
1 files changed, 0 insertions, 5 deletions
diff --git a/shared/extra-utils/requests/requests.ts b/shared/extra-utils/requests/requests.ts
index 3f1ac6650..60c9b938b 100644
--- a/shared/extra-utils/requests/requests.ts
+++ b/shared/extra-utils/requests/requests.ts
@@ -7,10 +7,6 @@ import { URL } from 'url'
7import { HttpStatusCode } from '@shared/core-utils' 7import { HttpStatusCode } from '@shared/core-utils'
8import { buildAbsoluteFixturePath, root } from '../miscs/tests' 8import { buildAbsoluteFixturePath, root } from '../miscs/tests'
9 9
10function get4KFileUrl () {
11 return 'https://download.cpy.re/peertube/4k_file.txt'
12}
13
14function makeRawRequest (url: string, statusCodeExpected?: HttpStatusCode, range?: string) { 10function makeRawRequest (url: string, statusCodeExpected?: HttpStatusCode, range?: string) {
15 const { host, protocol, pathname } = new URL(url) 11 const { host, protocol, pathname } = new URL(url)
16 12
@@ -227,7 +223,6 @@ function unwrapText (test: request.Test): Promise<string> {
227// --------------------------------------------------------------------------- 223// ---------------------------------------------------------------------------
228 224
229export { 225export {
230 get4KFileUrl,
231 makeHTMLRequest, 226 makeHTMLRequest,
232 makeGetRequest, 227 makeGetRequest,
233 decodeQueryString, 228 decodeQueryString,