1
0
Fork 0
peertube/server/tests/cli
Theodore R. Smith 8e76aa1d75
(#3520) [cli] Hardened auth add: No longer fails with extraneous characters.
**The Solution:**
I have hardened `auth add` by stripping out everything from the third '/' to the end of the instance URL.

**The Problem:**
When adding an authorization for the peertube-cli, before this commit you could not have anything after the domain_name:port.

For instance, if there was a trailing / in your instance URL, before this commit it will always fail with

    expected 200 "OK", got 404 "Not Found".

It took me over 20 minutes to figure out that this was the problem.

See Issue #3091.
2020-12-27 14:29:54 -06:00
..
create-import-video-file-job.ts Move to eslint 2020-02-03 08:31:02 +01:00
create-transcoding-job.ts Move to eslint 2020-02-03 08:31:02 +01:00
index.ts Add avatar to prune script 2019-08-09 15:04:36 +02:00
optimize-old-videos.ts Add live transcoding bit rate tests 2020-11-25 10:07:51 +01:00
peertube.ts (#3520) [cli] Hardened auth add: No longer fails with extraneous characters. 2020-12-27 14:29:54 -06:00
plugins.ts Move to eslint 2020-02-03 08:31:02 +01:00
prune-storage.ts replace numbers with typed http status codes (#3409) 2020-12-07 14:32:36 +01:00
reset-password.ts emit more specific status codes on video upload (#3423) 2020-12-08 21:16:10 +01:00
update-host.ts Move to eslint 2020-02-03 08:31:02 +01:00