Commits

Anonymous committed 3c7c61c

REST

Comments (0)

Files changed (2)

deps/webmachine/src/webmachine_decision_core.erl

          end,
     {MT, MParams} = webmachine_util:media_type_to_detail(CT),
     wrcall({set_metadata, 'mediaparams', MParams}),
+
     case [Fun || {Type,Fun} <-
                      resource_call(content_types_accepted), MT =:= Type] of
         [] -> {respond,415};

deps/webmachine/src/webmachine_resource.erl

     end.
 
 do(Fun, ReqProps) when is_atom(Fun) andalso is_list(ReqProps) ->
-%    io:format("Do:   ~p~n",[Fun]),
-%    io:format("Do:~nFun:~p~nReqProps:~p~n",[Fun,ReqProps]),
     Self = proplists:get_value(resource, ReqProps),
-%    io:format("Do:~nSelf:~p~n",[Self]),
     Req = proplists:get_value(req, ReqProps),
-%    io:format("Do:~nReq:~p~n",[Req]),
     RD0 = Req:get_reqdata(),
-%    io:format("Do:~nRD0:~p~n",[RD0]),
     {Reply, RD1, NewModState} = handle_wm_call(Fun, RD0),
-%    io:format("Do:~nRD1:~p~n",[RD1]),
-%    io:format("Do:~nNewModState:~p~n",[NewModState]),
     case Reply of
         {error, Err} -> {Err, Self};
         _ ->