Skip to content

Commit

Permalink
PR/174: petre: The new CSV file identification is returning
Browse files Browse the repository at this point in the history
"application/csv". According to RFC 4180, the registered mime type
is 'text/csv'. "application/csv" is not registered at all, see
https://www.iana.org/assignments/media-types/media-types.xhtml
  • Loading branch information
zoulasc committed Aug 9, 2020
1 parent 2e64ffd commit e02a2c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/is_csv.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#include "file.h"

#ifndef lint
FILE_RCSID("@(#)$File: is_csv.c,v 1.5 2020/06/15 00:56:20 christos Exp $")
FILE_RCSID("@(#)$File: is_csv.c,v 1.6 2020/08/09 16:43:36 christos Exp $")
#endif

#include <string.h>
Expand Down Expand Up @@ -149,7 +149,7 @@ file_is_csv(struct magic_set *ms, const struct buffer *b, int looks_text)
return 1;

if (mime) {
if (file_printf(ms, "application/csv") == -1)
if (file_printf(ms, "text/csv") == -1)
return -1;
return 1;
}
Expand Down

0 comments on commit e02a2c1

Please sign in to comment.