Procházet zdrojové kódy

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
mh4ckt3mh4ckt1c4s před 3 roky
rodič
revize
e9d8894a37
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      pkg/settings/args.go

+ 1 - 1
pkg/settings/args.go

@@ -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, "/")
 }