mirror of
https://github.com/standardebooks/web.git
synced 2025-07-19 04:44:48 -04:00
Serve OPDS as application/xml
This commit is contained in:
parent
dcb20692aa
commit
1266c5859b
2 changed files with 6 additions and 6 deletions
|
@ -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>
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue