Skip to content

Commit 1d32460

Browse files
committed
Add User-Agent
1 parent 4d5e7f9 commit 1d32460

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function get_userinfo() {
3131
base64_encode($nonce),
3232
$created);
3333
$context = stream_context_create(
34-
array('http' => array('header' => "X-WSSE: $x_wsse"))
34+
array('http' => array('header' => "X-WSSE: $x_wsse\r\n"."User-Agent: HatebuList.alfredworkflow"))
3535
);
3636
$file = file_get_contents($url, 0, $context);
3737
$json = json_decode($file);

0 commit comments

Comments
 (0)