Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CSV and TSV mime types #485

Merged
merged 1 commit into from
Nov 21, 2015
Merged

Fix CSV and TSV mime types #485

merged 1 commit into from
Nov 21, 2015

Conversation

canpolat
Copy link

Coercing csv, tsv to officedocument (#357) doesn't work around #232 ("Push flag "-convert" has no effect"). Therefore there is no need for this hack.

Coercing csv, tsv to officedocument (odeke-em#357) doesn't work around odeke-em#232 ("Push flag "-convert" has no effect"). Therefore there is no need for this hack.
@odeke-em
Copy link
Owner

Hello @canpolat thank you for this reminder and for working on this.
LGTM! Merging it in.

@@ -501,7 +501,7 @@ var regExtStrMap = map[string]string{

"docx?": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
"pptx?": "application/vnd.ms-powerpoint",
"tsv": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You sure this is the right mimeType for tsv?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to Wikipedia and IANA it is text/tab-separated-values. Did you have something else in mind?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool, nope 'text/tab-separated-values' just looked odd in comparison to 'text/csv'.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It does look weird, indeed :)

odeke-em pushed a commit that referenced this pull request Nov 21, 2015
Fix CSV and TSV mime types
@odeke-em odeke-em merged commit 0fb8707 into odeke-em:master Nov 21, 2015
@odeke-em
Copy link
Owner

Thanks @canpolat!

@canpolat canpolat deleted the patch-1 branch November 21, 2015 22:43
@odeke-em odeke-em added this to the v0.3.4 milestone Nov 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants