Skip to content

Commit

Permalink
Merge pull request #1 from snize/master
Browse files Browse the repository at this point in the history
Add User-Agent
  • Loading branch information
geckotang committed Jan 4, 2016
2 parents 4d5e7f9 + 1d32460 commit 93f90f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hl.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function get_userinfo() {
base64_encode($nonce),
$created);
$context = stream_context_create(
array('http' => array('header' => "X-WSSE: $x_wsse"))
array('http' => array('header' => "X-WSSE: $x_wsse\r\n"."User-Agent: HatebuList.alfredworkflow"))
);
$file = file_get_contents($url, 0, $context);
$json = json_decode($file);
Expand Down

0 comments on commit 93f90f1

Please sign in to comment.