Permalink
Browse files

fix content type detection for stdin

Use 'stdinfile' instead of 'gistfile' as the file prefix, since GitHub's
gist service treats that prefix specially for no good reason.
  • Loading branch information...
1 parent bca9b29 commit 8482139138675f6097edd7cc55814e75ac4d01c7 @goodell goodell committed May 5, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 gist
View
2 gist
@@ -1283,7 +1283,7 @@ private
file_data = {}
files.each do |file|
i = i + 1
- filename = file[:filename] ? file[:filename] : "gistfile#{i}"
+ filename = file[:filename] ? file[:filename] : "stdinfile#{i}#{file[:extension]}"
file_data[filename] = {:content => file[:input]}
end

0 comments on commit 8482139

Please sign in to comment.