Permalink
Browse files

Mochiweb:init({Req, DocRoot}) for backwards-compat

  • Loading branch information...
1 parent fa9b2b2 commit b46435725409eae33bc2e94ab7e587fdd94ee27a @choptastic choptastic committed May 31, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/mochiweb_bridge_modules/mochiweb_request_bridge.erl
View
4 src/mochiweb_bridge_modules/mochiweb_request_bridge.erl
@@ -17,6 +17,10 @@
%% Max Body of 10MB by default
-define(MAX_RECV_BODY,(1024*1024*10)).
+%% {Req, DocRoot} is deprecated
+%% Maintained for backwards compatibility.
+init({Req, _DocRoot}) ->
+ init(Req);
init(Req) ->
Req.

0 comments on commit b464357

Please sign in to comment.