whoisd: replace spaces with - in field names

This commit is contained in:
Sebastian Lohff 2017-04-15 16:50:41 +02:00
parent c2f4276f78
commit 04fe44da9a
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ class WhoisHandler(socketserver.BaseRequestHandler):
] ]
for field, value in getWhoisObjectFields(obj, False): for field, value in getWhoisObjectFields(obj, False):
fieldName = field.lower().replace(" ", "_") + ":" fieldName = field.lower().replace(" ", "-") + ":"
if not value: if not value:
value = "" value = ""