Serve OPDS as application/xml

This commit is contained in:
Alex Cabal 2022-06-24 10:50:26 -05:00
parent dcb20692aa
commit 1266c5859b
2 changed files with 6 additions and 6 deletions

View file

@ -102,15 +102,15 @@ Define webroot /standardebooks.org/web
Header set Content-Type "text/plain"
</location>
# text/xml allows the page to be displayed in a browser. application/atom+xml will cause it to be downloaded.
# application/xml allows the page to be displayed in a browser. application/atom+xml will cause it to be downloaded.
<Location ~ ^/opds.+?$>
DirectoryIndex index.xml
Header set Content-Type "text/xml"
Header set Content-Type "application/xml"
</location>
# application/xml allows the page to be displayed in a browser and the encoding to be
# determined from the document and not the HTTP headers. application/rss+xml will cause it to be downloaded.
<Location ~ ^/rss/.*$>
<Location ~ ^/(rss|atom)/.*$>
Header set Content-Type "application/xml"
</Location>

View file

@ -101,15 +101,15 @@ Define webroot /standardebooks.org/web
Header set Content-Type "text/plain"
</location>
# text/xml allows the page to be displayed in a browser. application/atom+xml will cause it to be downloaded.
# application/xml allows the page to be displayed in a browser. application/atom+xml will cause it to be downloaded.
<Location ~ ^/opds.+?$>
DirectoryIndex index.xml
Header set Content-Type "text/xml"
Header set Content-Type "application/xml"
</location>
# application/xml allows the page to be displayed in a browser and the encoding to be
# determined from the document and not the HTTP headers. application/rss+xml will cause it to be downloaded.
<Location ~ ^/rss/.*$>
<Location ~ ^/(rss|atom)/.*$>
Header set Content-Type "application/xml"
</Location>