Skip to content

Commit 3b57aba

Browse files
Fix user-agent string (#165)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 0971106 commit 3b57aba

File tree

5 files changed

+5
-4
lines changed

5 files changed

+5
-4
lines changed

agent/build/agent.phar

32 Bytes
Binary file not shown.

agent/build/signature.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
9153325BB9C01288294ABD8600D2ADB2398B23D5E483579B38EE6EF3AB5BEA59F2F1ED93364DF72900B6C1A7B25B1D4DDEA36265A3D57E3B30D9996181A1B0DD
1+
DD946185657D5588B486E061C1FE5EFF72C823F95DB4FC23EA7520E4BA4A8ABBED8479E2078109A76A9063A264B695605894E04FF235D29D1034413D06D3B0E0

agent/src/Browser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function __construct(
2424
public function post(string $url, array $headers = [], string $body = ''): PromiseInterface
2525
{
2626
return $this->browser->post($url, [
27-
$this->headers(),
27+
...$this->headers(),
2828
...$headers,
2929
], $body);
3030
}

agent/src/Factories/BrowserFactory.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ public function __invoke(
2929

3030
$browser = (new ReactBrowser($connector))
3131
->withTimeout($timeout)
32-
->withBase($baseUrl);
32+
->withBase($baseUrl)
33+
->withoutHeader('User-Agent');
3334

3435
foreach ($headers as $key => $value) {
3536
$browser = $browser->withHeader($key, $value);

src/Payload.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ final class Payload
1717
*
1818
* Do not modify or re-locate this constant.
1919
*/
20-
public const SIGNATURE = '9153325';
20+
public const SIGNATURE = 'DD94618';
2121

2222
private bool $pulled = false;
2323

0 commit comments

Comments
 (0)