Fix(AUR): Fix end of php use on AUR API (#1685)

* Fixed end of php use on AUR API

* Added a / to the end of rpc to respect the AUR RPC doc

* Removed the / due to the "AUR unavailable at this moment" error
This commit is contained in:
mh4ckt3mh4ckt1c4s 2022-02-05 13:56:10 +01:00 committed by GitHub
parent 19d42ae3cd
commit e9d8894a37
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,7 +27,7 @@ func (c *Configuration) extractYayOptions(a *parser.Arguments) {
}
}
c.Runtime.AURClient.BaseURL = strings.TrimRight(c.AURURL, "/") + "/rpc.php?"
c.Runtime.AURClient.BaseURL = strings.TrimRight(c.AURURL, "/") + "/rpc?"
c.AURURL = strings.TrimRight(c.AURURL, "/")
}