Skip to content

Commit bc3f716

Browse files
add User-Agent
1 parent b831cee commit bc3f716

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

BaseAlipayClient.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ private function checkRspSign($httpMethod, $path, $clientId, $rspTime, $rspBody,
124124
private function buildBaseHeader($requestTime, $clientId, $keyVersion, $signValue){
125125
$baseHeader = array();
126126
$baseHeader[] = "Content-Type:application/json; charset=UTF-8";
127+
$baseHeader[] = "User-Agent:global-alipay-sdk-php";
127128
$baseHeader[] = "Request-Time:" . $requestTime;
128129
$baseHeader[] = "client-id:" . $clientId;
129130

0 commit comments

Comments
 (0)