Skip to content

Commit

Permalink
cratHighlighterSubpages.pl: Hardcode program name in UA
Browse files Browse the repository at this point in the history
Using `$PROGRAM_NAME`, as introduced in 1200e39, just doesn't work in the user agent, or elsewhere.  The attempted fix in 51452a5 also doesn't, what it gets on toolforge is something like `/data/project/` then the botname then the path to the script.  Alas.
  • Loading branch information
Amorymeltzer committed Nov 7, 2023
1 parent 9701fe4 commit 647e05e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crathighlighter/cratHighlighterSubpages.pl
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ sub mwLogin {
on_error => \&dieNice,
use_http_get => '1' # use GET where appropriate
});
$mw->{ua}->agent("$PROGRAM_NAME (".$mw->{ua}->agent.')');
$mw->{ua}->agent('cratHighlighterSubpages.pl ('.$mw->{ua}->agent.')');
$mw->login({lgname => $username, lgpassword => $password});

return $mw;
Expand Down

0 comments on commit 647e05e

Please sign in to comment.