Use 'request' record definition from header file

This fixes a 'badrecord' crash in mod_http_fileserver.
This commit is contained in:
Holger Weiss 2014-10-16 13:51:13 +02:00
parent adaa067333
commit 96d6aacede
1 changed files with 1 additions and 6 deletions

View File

@ -48,17 +48,12 @@
-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,