Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(Chocobozzz#3520) [cli] Hardened
auth add
: No longer fails with ext…
…raneous 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 Chocobozzz#3091.
- Loading branch information