Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Commit 3caa622

Browse files
committed
RunTests: Fix apiPost function()
1 parent 74cb7d5 commit 3caa622

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/runTests.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@
3131
function apiPost($baseData, $url, $parameters, $private){
3232

3333
$nonce = substr(md5(microtime()), 0, 6);
34+
$url = $baseData["path"].$url;
3435
$msg = "$url:$nonce:$private";
3536
$hash = $nonce.":".hash_hmac("sha256", $msg, $parameters["auth_token"]);
3637
$client = new HttpClient($baseData["host"]);
3738
$parameters["auth_hash"] = $hash;
38-
$url = $baseData["path"].$url;
3939
$res = $client->post($url, $parameters);
4040
return $client;
4141

0 commit comments

Comments
 (0)