Skip to content

Commit 83315de

Browse files
author
Steve Canny
committed
opc: add content type for .docx package
Needed to set Content-Type header in an HTTP Response object carrying a .docx payload.
1 parent 8364dad commit 83315de

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docx/opc/constants.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,10 @@ class CONTENT_TYPE(object):
268268
'application/vnd.openxmlformats-officedocument.wordprocessingml.comm'
269269
'ents+xml'
270270
)
271+
WML_DOCUMENT = (
272+
'application/vnd.openxmlformats-officedocument.wordprocessingml.docu'
273+
'ment'
274+
)
271275
WML_DOCUMENT_GLOSSARY = (
272276
'application/vnd.openxmlformats-officedocument.wordprocessingml.docu'
273277
'ment.glossary+xml'

0 commit comments

Comments
 (0)