Skip to content
This repository has been archived by the owner on Oct 15, 2022. It is now read-only.

Commit

Permalink
added user agent Mozilla/5.0 to Web.pm (required for some APIs)
Browse files Browse the repository at this point in the history
  • Loading branch information
moollaza committed Aug 11, 2012
1 parent a47b00f commit 0b2b37e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 0 deletions.
Empty file modified lib/App/DuckPAN/Query.pm
100755 → 100644
Empty file.
1 change: 1 addition & 0 deletions lib/App/DuckPAN/Web.pm
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ has ua => (
is => 'ro',
default => sub {
LWP::UserAgent->new(
agent => "Mozilla/5.0", #User Agent required for some API's (eg. Vimeo, IsItUp)
timeout => 5,
ssl_opts => { verify_hostname => 0 },
);
Expand Down

4 comments on commit 0b2b37e

@rpicard
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@moollaza Why "Mozilla/5.0" instead of something like "DuckPAN/#.##"?

@moollaza
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because Mozilla worked :)

@rpicard
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@moollaza
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, its the same as the user-agent we use in nginx

Please sign in to comment.