<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -503,7 +503,7 @@ module Camping
       # Run the request. 
       @response = if app_module.respond_to?(:run) # Camping &lt; 2.0
         app_module.run(*@request.to_camping_args)
-      else  # Camping 2.0
+      else # Camping 2.0
         app_module.call(@request.to_rack_request).pop # Serve a Rack::Response object
       end
         
@@ -577,8 +577,13 @@ module Camping
     
     # Checks that Camping sent us a cookie to attach a session
     def assert_session_started
-      assert_not_nil @cookies[&quot;camping_sid&quot;], 
-        &quot;The session ID cookie was empty although session should have started&quot;
+      if Camping.respond_to?(:call) # Camping 2.0 prefers cookie sessions
+        assert_not_nil @cookies[&quot;camping_hash&quot;], 
+          &quot;The session hash cookie was empty although session should have started&quot;
+      else
+        assert_not_nil @cookies[&quot;camping_sid&quot;], 
+          &quot;The session ID cookie was empty although session should have started&quot;
+      end
     end
     
     # The reverse of +assert_session_started+</diff>
      <filename>lib/mosquito.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>01c9515d0b28f291b7f4f18e41995499933568d7</id>
    </parent>
  </parents>
  <author>
    <name>Julik</name>
    <email>me@julik.nl</email>
  </author>
  <url>http://github.com/topfunky/mosquito/commit/5ef37ab84f2c335f0e5dc68bbdcca03ba8de491c</url>
  <id>5ef37ab84f2c335f0e5dc68bbdcca03ba8de491c</id>
  <committed-date>2008-11-16T11:40:13-08:00</committed-date>
  <authored-date>2008-11-16T11:40:13-08:00</authored-date>
  <message>Support session flags for cookie sessions in Camping 2.0</message>
  <tree>39e60a90795680ecf3008133003729648b8b2fcd</tree>
  <committer>
    <name>Julik</name>
    <email>me@julik.nl</email>
  </committer>
</commit>
