]> granicus.if.org Git - ejabberd/commitdiff
Use 'request' record definition from header file
authorHolger Weiss <holger@zedat.fu-berlin.de>
Thu, 16 Oct 2014 11:51:13 +0000 (13:51 +0200)
committerHolger Weiss <holger@zedat.fu-berlin.de>
Thu, 16 Oct 2014 11:51:13 +0000 (13:51 +0200)
This fixes a 'badrecord' crash in mod_http_fileserver.

src/mod_http_fileserver.erl

index 8807f24bf6cf123fd94b04382bd5bf88cf1c8a72..1011dd07f294ace636033e5ca8f7fb914d4874d9 100644 (file)
 
 -include("ejabberd.hrl").
 -include("logger.hrl").
+-include("ejabberd_http.hrl").
 
 -include("jlib.hrl").
 
 -include_lib("kernel/include/file.hrl").
 
-%%-include("ejabberd_http.hrl").
-%% TODO: When ejabberd-modules SVN gets the new ejabberd_http.hrl, delete this code:
--record(request,
-       {method, path, q = [], us, auth, lang = <<"">>,
-        data = <<"">>, ip, host, port, tp, headers}).
-
 -record(state,
        {host, docroot, accesslog, accesslogfd,
         directory_indices, custom_headers, default_content_type,