incubator-deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lut...@apache.org
Subject svn commit: r962205 - /incubator/deltacloud/trunk/server/libexec/lib/sinatra/respond_to.rb
Date Thu, 08 Jul 2010 23:36:33 GMT
Author: lutter
Date: Thu Jul  8 23:36:33 2010
New Revision: 962205

URL: http://svn.apache.org/viewvc?rev=962205&view=rev
Log:
* lib/sinatra/respond_to.rb: fix typo, now compatible with Sinatra 0.9.4

Before, the code would only run on Sinatra 0.10

Modified:
    incubator/deltacloud/trunk/server/libexec/lib/sinatra/respond_to.rb

Modified: incubator/deltacloud/trunk/server/libexec/lib/sinatra/respond_to.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/libexec/lib/sinatra/respond_to.rb?rev=962205&r1=962204&r2=962205&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/libexec/lib/sinatra/respond_to.rb (original)
+++ incubator/deltacloud/trunk/server/libexec/lib/sinatra/respond_to.rb Thu Jul  8 23:36:33
2010
@@ -188,7 +188,7 @@ module Sinatra
       end
 
       def self.mime_type(sym)
-        ::Sinatra::Base.respond_to?(:mime_type) && ::Sinatra::Base.mime_type(sym)
|| ::Sinatra::Base.mime_type(sym)
+        ::Sinatra::Base.respond_to?(:mime_type) && ::Sinatra::Base.mime_type(sym)
|| ::Sinatra::Base.media_type(sym)
       end
 
       def format(val=nil)



Mime
View raw message