Skip to content

Commit

Permalink
use proper mediatype for page/xml, OCR-D/spec#33
Browse files Browse the repository at this point in the history
  • Loading branch information
kba committed May 2, 2018
1 parent 9abcc7b commit 1d7c3bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ocrd/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
'xsl': 'http://www.w3.org/1999/XSL/Transform#',
}

MIMETYPE_PAGE = 'text/page+xml'
MIMETYPE_PAGE = 'application/vnd.prima.page+xml'

DEFAULT_UPLOAD_FOLDER = '/tmp/uploads-pyocrd'
DEFAULT_REPOSITORY_URL = 'http://localhost:5000/'
Expand Down Expand Up @@ -63,7 +63,7 @@
'.png': 'image/png',
'.jpg': 'image/jpg',
'.jpeg': 'image/jpg',
'.xml': 'text/xml'
'.xml': MIMETYPE_PAGE
}


Expand Down

0 comments on commit 1d7c3bf

Please sign in to comment.