From 1d7c3bff8e774303a476f4a936dbb6bdfd04fa8b Mon Sep 17 00:00:00 2001 From: Konstantin Baierer Date: Wed, 2 May 2018 15:37:37 +0200 Subject: [PATCH] use proper mediatype for page/xml, OCR-D/spec#33 --- ocrd/constants.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ocrd/constants.py b/ocrd/constants.py index b87adc000..c3e2b486a 100644 --- a/ocrd/constants.py +++ b/ocrd/constants.py @@ -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/' @@ -63,7 +63,7 @@ '.png': 'image/png', '.jpg': 'image/jpg', '.jpeg': 'image/jpg', - '.xml': 'text/xml' + '.xml': MIMETYPE_PAGE }