Просмотр исходного кода

Remove the redundant include/ from -include("http.hrl")

Loïc Hoguin 13 лет назад
Родитель
Сommit
d9212c21dd
5 измененных файлов с 4 добавлено и 5 удалено
  1. 0 1
      src/cowboy_http.erl
  2. 1 1
      src/cowboy_http_protocol.erl
  3. 1 1
      src/cowboy_http_req.erl
  4. 1 1
      src/cowboy_http_rest.erl
  5. 1 1
      src/cowboy_http_websocket.erl

+ 0 - 1
src/cowboy_http.erl

@@ -51,7 +51,6 @@
 
 
 -export_type([method/0, uri/0, version/0, header/0, headers/0, status/0]).
 -export_type([method/0, uri/0, version/0, header/0, headers/0, status/0]).
 
 
--include("include/http.hrl").
 -include_lib("eunit/include/eunit.hrl").
 -include_lib("eunit/include/eunit.hrl").
 
 
 %% Parsing.
 %% Parsing.

+ 1 - 1
src/cowboy_http_protocol.erl

@@ -38,7 +38,7 @@
 -export([start_link/4]). %% API.
 -export([start_link/4]). %% API.
 -export([init/4, parse_request/1, handler_loop/3]). %% FSM.
 -export([init/4, parse_request/1, handler_loop/3]). %% FSM.
 
 
--include("include/http.hrl").
+-include("http.hrl").
 -include_lib("eunit/include/eunit.hrl").
 -include_lib("eunit/include/eunit.hrl").
 
 
 -record(state, {
 -record(state, {

+ 1 - 1
src/cowboy_http_req.erl

@@ -50,7 +50,7 @@
 	compact/1, transport/1
 	compact/1, transport/1
 ]). %% Misc API.
 ]). %% Misc API.
 
 
--include("include/http.hrl").
+-include("http.hrl").
 
 
 %% Request API.
 %% Request API.
 
 

+ 1 - 1
src/cowboy_http_rest.erl

@@ -46,7 +46,7 @@
 	expires :: undefined | no_call | calendar:datetime()
 	expires :: undefined | no_call | calendar:datetime()
 }).
 }).
 
 
--include("include/http.hrl").
+-include("http.hrl").
 
 
 %% @doc Upgrade a HTTP request to the REST protocol.
 %% @doc Upgrade a HTTP request to the REST protocol.
 %%
 %%

+ 1 - 1
src/cowboy_http_websocket.erl

@@ -40,7 +40,7 @@
 -export([upgrade/4]). %% API.
 -export([upgrade/4]). %% API.
 -export([handler_loop/4]). %% Internal.
 -export([handler_loop/4]). %% Internal.
 
 
--include("include/http.hrl").
+-include("http.hrl").
 -include_lib("eunit/include/eunit.hrl").
 -include_lib("eunit/include/eunit.hrl").
 
 
 -type opcode() :: 0 | 1 | 2 | 8 | 9 | 10.
 -type opcode() :: 0 | 1 | 2 | 8 | 9 | 10.