eldur / jwbf

Java Wiki Bot Framework is a library to maintain Wikis like Wikipedia based on MediaWiki.
http://jwbf.sourceforge.net/
Apache License 2.0
78 stars 33 forks source link

Pointless warning when using a custom HTTP client in HTTPActionClient builder #67

Open andreas-hartmann opened 7 years ago

andreas-hartmann commented 7 years ago

net/sourceforge/jwbf/core/actions/HttpActionClient.java:386 is a pointless warning. It should be info or rely on reflection to check if a user agent is set in the HTTPClient. This should be fixed because it's either this warning or this warning if you don't use a custom client to set the cookie spec, but during normal operation no warnings should be logged. I'd fix it if I had permission to push my local branch.

eldur commented 7 years ago

Please send a pull request