mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-09-01 00:40:02 +00:00
Minor refactoring
This commit is contained in:
parent
771d4cfb66
commit
cbf5dbd29e
4 changed files with 11 additions and 8 deletions
|
|
@ -2604,6 +2604,7 @@ def _setHttpOptions():
|
|||
if conf.url and (conf.url.startswith("ws:/") or conf.url.startswith("wss:/")):
|
||||
try:
|
||||
from websocket import ABNF
|
||||
ABNF # require websocket-client, not any 'websocket' module
|
||||
except ImportError:
|
||||
errMsg = "sqlmap requires third-party module 'websocket-client' "
|
||||
errMsg += "in order to use WebSocket functionality"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue