diff --git a/moo/kernel/Http.moo b/moo/kernel/Http.moo index 7b5c4f6..bd2eeea 100644 --- a/moo/kernel/Http.moo +++ b/moo/kernel/Http.moo @@ -1,6 +1,14 @@ ###include 'Moo.moo'. #include 'Socket.moo'. +class HttpReq(Object) +{ +} + +class HttpReqBuilder(Object) +{ +} + class HttpConnReg(Object) { var connections. @@ -82,6 +90,7 @@ class HttpSocket(Socket) method onSocketDataIn { 'CLIENT got DATA' dump. + self readBytes self close. } diff --git a/moo/lib/exec.c b/moo/lib/exec.c index 6756c5c..e8e4eb1 100644 --- a/moo/lib/exec.c +++ b/moo/lib/exec.c @@ -2207,7 +2207,7 @@ static moo_pfrc_t pf_block_new_process (moo_t* moo, moo_mod_t* mod, moo_ooi_t na * context of a process. */ blkctx->sender = (moo_oop_context_t)moo->_nil; - proc = make_process (moo, blkctx); + proc = make_process(moo, blkctx); if (!proc) return MOO_PF_FAILURE; /* hard failure */ /* TOOD: can't this be treated as a soft failure? throw an exception instead?? */ /* __block_value() has popped all arguments and the receiver.