[erlang-questions] How to handle 'GET' in latest version of misultin

Richard Evans richardprideauxevans@REDACTED
Wed Dec 14 18:08:55 CET 2011


Hey guys,

In a previous version of misultin (0.8 and earlier version of 0.9), I
was doing this kind of
thing to get files:

handle('GET', [], Req) ->
    Req:file("../../../client/SplashScreen.html");

handle('GET', ["js", X], Req) ->
  Req:file("../../../client/js/"++X);


but this no longer seems to be working with the latest version of misultin.

e.g. it complains Error in process <0.64.0> with exit value:
{undef,[{misultin_http,request,[{c,<0.35.0>,<0.37.0>,24594,8080,30000,4194304,2000,false,#Fun<server.1.98914765>,true,#Fun<server.2.60110728>,true,['draft-hybi-17','draft-hybi-10','draft-hixie-76'],undefined,false,true,false},{req,#Port<0.981>,http,{127,0,0,1},58496,undefined,close,undefined,{1,1},undefined,undefined,[],[],<<0
bytes>>...


Does anybody know how things have changed and what I need to modify?

thanks,
Richard



More information about the erlang-questions mailing list