Skip to content

Commit 93f90f1

Browse files
committed
Merge pull request #1 from snize/master
Add User-Agent
2 parents 4d5e7f9 + 1d32460 commit 93f90f1

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)