Skip to content

Commit

Permalink
makefile is text
Browse files Browse the repository at this point in the history
  • Loading branch information
ksherlock committed Aug 11, 2013
1 parent f67e5f1 commit ed6c2fc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions gopher-server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
".text" => true,
".rb" => true,
'.mk' => true,
'.asm' => true
'.asm' => true,
'makefile' => true
}

def do_error(client, message)
Expand All @@ -29,9 +30,11 @@ def do_error(client, message)

def get_type(path)

ext = File.extname(path).downcase
path = path.downcase
ext = File.extname(path)

return 0 if TEXT[ext]
return 0 if TEXT[path]
return 9

end
Expand Down

0 comments on commit ed6c2fc

Please sign in to comment.