public
Fork of KirinDave/fuzed
Description: A new revision of Fuzed, the Erlang-based frontend for web apps.
Clone URL: git://github.com/mojombo/fuzed.git
More work on frontend_responder.
KirinDave (author)
Sat May 03 15:52:12 -0700 2008
commit  ce16b3f48b04638a9c7bbdb0a7e99b17f72f1997
tree    dc83c6eb3d56416d64d874229c829c8a27237bf7
parent  9d2ad4381cf329331caf5b5c5ecdc47b36cead7d
...
10
11
12
13
14
15
16
17
18
19
 
 
 
 
 
 
20
21
22
...
10
11
12
 
 
 
 
 
 
 
13
14
15
16
17
18
19
20
21
0
@@ -10,13 +10,12 @@ out404(A, _GC, SC) ->
0
                                          Parameters,
0
                                          {handle_request, {request}},
0
                                          pure,
0
- details()) ->
0
- {result, R} ->
0
-
0
- Resource = rails_connection_pool:get(),
0
- Result = rails_forwarder:handle_request(Resource, A, SC, 60000),
0
- rails_connection_pool:refund(Resource),
0
- Result.
0
+ details()) of
0
+ {result, R} ->
0
+ convert_response(R);
0
+ {error, _R} ->
0
+ [{status, 500}, {html, "Sumpin fucked."}]
0
+ end.
0
 
0
 parse_arg(Request, ServerOptions) ->
0
   Headers = Request#arg.headers,

Comments

    No one has commented yet.