anchor.diff:      {Code, ?JSON_CONTENT,
        mochijson2:encode({struct, [{error, iolist_to_binary(Err)}]})}.
   
  +api_relative_url(canary, UUID) when is_binary(UUID) ->
  +    iolist_to_binary([<<"/v2/canary-fetch/">>, UUID]);
   api_relative_url(_APIVSN, UUID) when is_binary(UUID) ->
       iolist_to_binary([<<"/sessions/">>, UUID]).
   
  
positive.code:                     exit(Buffer, shutdown)
                  end
          end,
  
          {200, ""}
      end},
  
negative.code:          mochijson2:encode({struct, [{url, api_relative_url(api_v2, UUID)}]})}
      end},
  
      {['POST', "^/v2/canary-sessions$"], fun(Req, _Match) ->
          authorize(Req),
          Body = Req:recv_body(),
          UUID = logplex_session:publish(Body),
          not is_binary(UUID) andalso exit({expected_binary, UUID}),
          {201, ?JSON_CONTENT,
           mochijson2:encode({struct, [{url, api_relative_url(canary, UUID)}]})}
      end},
  
      {['GET', "^/sessions/([\\w-]+)$"], fun(Req, [Session]) ->
          proplists:get_value("srv", Req:parse_qs()) == undefined
              andalso error_resp(400, <<"[Error]: Please update your Heroku client to the most recent version. If this error message persists then uninstall the Heroku client gem completely and re-install.\n">>),
  