equal
deleted
inserted
replaced
87 (send (HttpUtil.reply_header (HttpStatus.ok, t, [])); |
87 (send (HttpUtil.reply_header (HttpStatus.ok, t, [])); |
88 if request_method = ScgiReq.Head then () |
88 if request_method = ScgiReq.Head then () |
89 else f (req, get_content content_is, send))) |
89 else f (req, get_content content_is, send))) |
90 end; |
90 end; |
91 |
91 |
92 fun thread_req () = |
92 fun thread_req () = (* FIXME avoid handle e *) |
93 (do_req () handle e => (warning (exnMessage e)); |
93 (do_req () handle e => (warning (exnMessage e)); |
94 BinIO.closeOut sout handle e => warning (exnMessage e); |
94 BinIO.closeOut sout handle e => warning (exnMessage e); |
95 BinIO.closeIn sin handle e => warning (exnMessage e); |
95 BinIO.closeIn sin handle e => warning (exnMessage e); |
96 Socket.close sock handle e => warning (exnMessage e); |
96 Socket.close sock handle e => warning (exnMessage e); |
97 tracing ("request done."); |
97 tracing ("request done."); |