Commits

Michael[tm] Smith  committed 5751bd9

Made user-agent string configurable.

  • Participants
  • Parent commits 263ab7b

Comments (0)

Files changed (1)

 html5specLoad = 'http://www.whatwg.org/specs/web-apps/current-work/'
 aboutPage = 'http://about.validator.nu/'
 aboutPath = 'validator/site/'
+userAgent = 'Validator.nu/LV'
 icon = None
 stylesheet = None
 script = None
     '-Dnu.validator.servlet.service-name=' + serviceName,
     '-Dorg.whattf.datatype.warn=true',
     '-Dnu.validator.servlet.about-page=' + aboutPage,
+    '-Dnu.validator.servlet.user-agent=' + userAgent,
     '-Dnu.validator.servlet.style-sheet=' + stylesheet,
     '-Dnu.validator.servlet.icon=' + icon,
     '-Dnu.validator.servlet.script=' + script,
       ianaCharset = arg[15:]
     elif arg.startswith("--about="):
       aboutPage = arg[8:]
+    elif arg.startswith("--user-agent="):
+      userAgent = arg[13:]
     elif arg.startswith("--about-path="):
       aboutPath = arg[13:]
     elif arg.startswith("--stylesheet="):