send @options['language'] to pygments.appspot.com, not just 'ruby'.

This commit is contained in:
Burke Libbey 2010-03-30 14:08:12 -05:00
parent 17eeb9e75f
commit 2f54f4c424

View File

@ -209,7 +209,7 @@ class Rocco
def highlight_webservice(code) def highlight_webservice(code)
Net::HTTP.post_form( Net::HTTP.post_form(
URI.parse('http://pygments.appspot.com/'), URI.parse('http://pygments.appspot.com/'),
{'lang' => 'ruby', 'code' => code} {'lang' => @options['language'], 'code' => code}
).body ).body
end end
end end