File tree 1 file changed +2
-1
lines changed
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -626,6 +626,7 @@ def dokumentUpload():
626
626
def dokumentHent ():
627
627
try :
628
628
cookie = request .headers .get ("lectio-cookie" )
629
+ contentType = request .headers .get ("content-type" )
629
630
id = request .args .get ("id" )
630
631
doctype = request .args .get ("doctype" )
631
632
raw = request .args .get ("raw" )
@@ -634,7 +635,7 @@ def dokumentHent():
634
635
_resp = lectioClient .dokumentHent (id , doctype )
635
636
resp = make_response (_resp ["content" ])
636
637
if not raw or raw == "true" :
637
- resp .headers ["Content-Type" ] = _resp ["content-type" ]
638
+ resp .headers ["Content-Type" ] = contentType if contentType else _resp ["content-type" ]
638
639
resp .headers ["Content-Disposition" ] = _resp ["content-disposition" ]
639
640
resp .headers ["set-lectio-cookie" ] = lectioClient .base64Cookie ()
640
641
resp .headers ["Access-Control-Expose-Headers" ] = "set-lectio-cookie"
You can’t perform that action at this time.
0 commit comments