css4j / css4j

CSS parser with Event and Object Model APIs, a DOM wrapper and a CSS-aware DOM implementation. Written in the Java™ language.

Home Page:https://css4j.github.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use the `http.agent` system property to set the user agent string

carlosame opened this issue · comments

AbstractUserAgent uses Mozilla/4.0 (compatible; CSS4J) as a default user agent identifier string. Instead, use the value of the http.agent system property (which is the standard in Java) and Mozilla/4.0 (compatible; CSS4J) as a fallback.