diff options
author | Chocobozzz <me@florianbigard.com> | 2021-07-16 10:19:16 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-07-20 15:27:18 +0200 |
commit | 59bbcced37005dd511daca9bd58ae2998cb931b1 (patch) | |
tree | 60d1ba7a8b2eac691f27c25cb5e2d0ae3a510c9d /shared/extra-utils/requests | |
parent | 254d3579f5338f5fd775c17d15cdfc37078bcfb4 (diff) | |
download | PeerTube-59bbcced37005dd511daca9bd58ae2998cb931b1.tar.gz PeerTube-59bbcced37005dd511daca9bd58ae2998cb931b1.tar.zst PeerTube-59bbcced37005dd511daca9bd58ae2998cb931b1.zip |
Centralize test URLs
Diffstat (limited to 'shared/extra-utils/requests')
-rw-r--r-- | shared/extra-utils/requests/requests.ts | 5 |
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' | |||
7 | import { HttpStatusCode } from '@shared/core-utils' | 7 | import { HttpStatusCode } from '@shared/core-utils' |
8 | import { buildAbsoluteFixturePath, root } from '../miscs/tests' | 8 | import { buildAbsoluteFixturePath, root } from '../miscs/tests' |
9 | 9 | ||
10 | function get4KFileUrl () { | ||
11 | return 'https://download.cpy.re/peertube/4k_file.txt' | ||
12 | } | ||
13 | |||
14 | function makeRawRequest (url: string, statusCodeExpected?: HttpStatusCode, range?: string) { | 10 | function 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 | ||
229 | export { | 225 | export { |
230 | get4KFileUrl, | ||
231 | makeHTMLRequest, | 226 | makeHTMLRequest, |
232 | makeGetRequest, | 227 | makeGetRequest, |
233 | decodeQueryString, | 228 | decodeQueryString, |