mirror of https://gitlab.com/bashrc2/epicyon
catalog defaults to json
parent
c729e85b9e
commit
44d8afdf41
|
@ -10773,7 +10773,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
catalogAuthorized = True
|
catalogAuthorized = True
|
||||||
# show shared items catalog for federation
|
# show shared items catalog for federation
|
||||||
if self._hasAccept(callingDomain) and catalogAuthorized:
|
if self._hasAccept(callingDomain) and catalogAuthorized:
|
||||||
catalogType = 'html'
|
catalogType = 'json'
|
||||||
if self.path.endswith('.csv') or self._requestCSV():
|
if self.path.endswith('.csv') or self._requestCSV():
|
||||||
catalogType = 'csv'
|
catalogType = 'csv'
|
||||||
elif self.path.endswith('.json') or not self._requestHTTP():
|
elif self.path.endswith('.json') or not self._requestHTTP():
|
||||||
|
|
Loading…
Reference in New Issue