csv header

main
Bob Mottram 2021-07-25 14:43:28 +01:00
parent 2c1cd07dcd
commit 52e3bc1e8d
1 changed files with 6 additions and 3 deletions

View File

@ -10688,6 +10688,9 @@ class PubServer(BaseHTTPRequestHandler):
self.server.path) self.server.path)
msg = json.dumps(catalogStr, msg = json.dumps(catalogStr,
ensure_ascii=False).encode('utf-8') ensure_ascii=False).encode('utf-8')
msglen = len(msg)
self._set_headers('text/csv',
msglen, None, callingDomain)
else: else:
catalogJson = \ catalogJson = \
sharesCatalogEndpoint(self.server.baseDir, sharesCatalogEndpoint(self.server.baseDir,
@ -10696,9 +10699,9 @@ class PubServer(BaseHTTPRequestHandler):
self.server.path) self.server.path)
msg = json.dumps(catalogJson, msg = json.dumps(catalogJson,
ensure_ascii=False).encode('utf-8') ensure_ascii=False).encode('utf-8')
msglen = len(msg) msglen = len(msg)
self._set_headers('application/json', self._set_headers('application/json',
msglen, None, callingDomain) msglen, None, callingDomain)
self._write(msg) self._write(msg)
return return
else: else: