Skip to content

Commit 6732622

Browse files
change useragent
1 parent c705dce commit 6732622

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/php/libsdk/SDK/FileOps.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ protected function download(string $url, string $dest_fn = NULL) : ?string
146146
var_dump(curl_setopt($ch, CURLOPT_HTTPHEADER, ['Accept: text/plain','X-custom-header: top1','Authorization: Bearer '.$token]));
147147
}
148148

149-
curl_setopt($ch, CURLOPT_USERAGENT, 'PHP-SDK-BINARY-TOOLS/123');
149+
curl_setopt($ch, CURLOPT_USERAGENT, 'PHP-SDK-BINARY-TOOLS');
150150
//curl_setopt($ch, CURLOPT_USERAGENT, Config::getSdkUserAgentName());
151151

152152
echo "curl_error=". curl_error($ch) ."\n";

0 commit comments

Comments
 (0)