File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -134,8 +134,8 @@ func TestGet(t *testing.T) {
134
134
store .EXPECT ().GetInfo ("yes" ).Return (FileInfo {
135
135
Offset : 0 ,
136
136
MetaData : map [string ]string {
137
- "filetype" : "text/html " ,
138
- "filename" : "invoice.html " ,
137
+ "filetype" : "application/vnd.openxmlformats-officedocument.wordprocessingml.document " ,
138
+ "filename" : "invoice.docx " ,
139
139
},
140
140
}, nil )
141
141
@@ -148,8 +148,8 @@ func TestGet(t *testing.T) {
148
148
URL : "yes" ,
149
149
ResHeader : map [string ]string {
150
150
"Content-Length" : "0" ,
151
- "Content-Type" : "text/html " ,
152
- "Content-Disposition" : `attachment;filename="invoice.html "` ,
151
+ "Content-Type" : "application/vnd.openxmlformats-officedocument.wordprocessingml.document " ,
152
+ "Content-Disposition" : `attachment;filename="invoice.docx "` ,
153
153
},
154
154
Code : http .StatusNoContent ,
155
155
ResBody : "" ,
Original file line number Diff line number Diff line change 24
24
reExtractFileID = regexp .MustCompile (`([^/]+)\/?$` )
25
25
reForwardedHost = regexp .MustCompile (`host=([^,]+)` )
26
26
reForwardedProto = regexp .MustCompile (`proto=(https?)` )
27
- reMimeType = regexp .MustCompile (`^[a-z]+\/[a-z\-\+]+$` )
27
+ reMimeType = regexp .MustCompile (`^[a-z]+\/[a-z\-\+\. ]+$` )
28
28
)
29
29
30
30
// HTTPError represents an error with an additional status code attached
You can’t perform that action at this time.
0 commit comments