jetti777Ltd / mochiweb

Automatically exported from code.google.com/p/mochiweb
Other
0 stars 0 forks source link

[PATCH] Fix deprecated function call syntax #68

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
This is a low-priority patch to fix the use of a deprecated function      

call syntax.                                                              

In mochiweb_http:headers/5, the Body variable is usually of the form      

{Module,Function}, and the call to Body(Req) is actually a call of the    

form {Module,Function}(Req). This tuple function call syntax does         

actually work (obviously), but it's deprecated.                           

As a quick fix I've just copied the mochiweb_socket_server:call_loop/2    

to mochiweb_http:call_body/2 since the logic is exactly the same.

Original issue reported on code.google.com by r...@jinsky.com on 27 Mar 2010 at 8:44

Attachments:

GoogleCodeExporter commented 8 years ago
r152

Original comment by bob.ippo...@gmail.com on 30 Mar 2010 at 8:27