Skip to content

Commit

Permalink
Only check against text/csv
Browse files Browse the repository at this point in the history
  • Loading branch information
pezholio committed Jan 8, 2014
1 parent bb96a44 commit df9da6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/csvlint.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def validate
build_warnings(:extension, nil)
end
build_warnings(:encoding, nil) if @encoding != "utf-8"
build_warnings(:content_type, nil) unless @content_type =~ /text\/csv|application\/csv|text\/comma-separated-values/
build_warnings(:content_type, nil) unless @content_type =~ /text\/csv/
s.each_line do |line|
begin
current_line = current_line + 1
Expand Down

0 comments on commit df9da6c

Please sign in to comment.