PeerTube/server
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
..
assets
controllers Add AP stats 2020-12-15 13:34:58 +01:00
helpers Refactor jobs state 2020-12-14 12:00:35 +01:00
initializers Add AP stats 2020-12-15 13:34:58 +01:00
lib Fix build 2020-12-22 16:49:17 +01:00
middlewares Use -1 for max live duration unlimited 2020-12-15 09:26:37 +01:00
models Fix redundancy federation in some cases 2020-12-17 09:23:57 +01:00
static/dnt-policy
tests (#3520) [cli] Hardened `auth add`: No longer fails with extraneous characters. 2020-12-27 14:29:54 -06:00
tools (#3520) [cli] Hardened `auth add`: No longer fails with extraneous characters. 2020-12-27 14:29:54 -06:00
types
typings/express