Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add content type to demo web interface, and correct content type of d…

…eclared available statements in web ui

git-svn-id: http://sword-app.svn.sourceforge.net/svnroot/sword-app/sss/branches/sss-2@490 2bf6ea0f-123d-0410-b71a-f1a21eb24612
  • Loading branch information...
commit d648151e67581bfdec3dbf2019527f2a7212069a 1 parent 6b818d0
richard-jones authored
Showing with 2 additions and 1 deletion.
  1. +1 −1  sss/repository.py
  2. +1 −0  sss/webpy.py
View
2  sss/repository.py
@@ -1251,7 +1251,7 @@ def get_item_page(self, oid):
frag += self._layout_sections(md_frag, file_frag)
head_frag = "<link rel=\"http://purl.org/net/sword/terms/edit\" href=\"" + self.um.edit_uri(collection, id) + "\"/>"
- head_frag += "<link rel=\"http://purl.org/net/sword/terms/statement\" type=\"application/atom+xml\" href=\"" + self.um.state_uri(collection, id, "atom") + "\"/>"
+ head_frag += "<link rel=\"http://purl.org/net/sword/terms/statement\" type=\"application/atom+xml;type=feed\" href=\"" + self.um.state_uri(collection, id, "atom") + "\"/>"
head_frag += "<link rel=\"http://purl.org/net/sword/terms/statement\" type=\"application/rdf+xml\" href=\"" + self.um.state_uri(collection, id, "ore") + "\"/>"
return self._wrap_html("Item: " + id, frag, head_frag)
View
1  sss/webpy.py
@@ -957,6 +957,7 @@ class WebUI(SwordHttpHandler):
"""
def GET(self, path=None):
w = WebInterface(config)
+ web.header("Content-Type", "text/html")
return w.get(path)
class Part(SwordHttpHandler):
Please sign in to comment.
Something went wrong with that request. Please try again.