Merge branch 'main' into feat/logging-system

This commit is contained in:
Phillip Tarrant
2025-12-26 11:52:52 -06:00
9 changed files with 16 additions and 1 deletions

View File

@@ -48,6 +48,10 @@ class Handler(BaseHTTPRequestHandler):
"""Extract user agent from request"""
return self.headers.get('User-Agent', '')
def version_string(self) -> str:
"""Return custom server version for deception."""
return self.config.server_header
def _should_return_error(self) -> bool:
"""Check if we should return an error based on probability"""
if self.config.probability_error_codes <= 0: