From 7801bd04684dd2739942ef4ad186b59e9dee45f7 Mon Sep 17 00:00:00 2001 From: Joel Bennett Date: Fri, 10 Apr 2020 15:19:27 -0400 Subject: [PATCH] Add PowerShell user agent PowerShell web and rest cmdlets use an agent like `Mozilla/5.0, (Windows NT 10.0; Microsoft Windows 10.0.18362; en-US), PowerShell/7.0.0` --- lib/globals.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/globals.py b/lib/globals.py index 444e97a..c915ad7 100644 --- a/lib/globals.py +++ b/lib/globals.py @@ -77,7 +77,8 @@ PLAIN_TEXT_AGENTS = [ "lwp-request", "wget", "python-requests", - "OpenBSD ftp" + "OpenBSD ftp", + "PowerShell" ] PLAIN_TEXT_PAGES = [':help', ':bash.function', ':translation']