Permalink
Browse files

fix bad merge

git-svn-id: http://mochiweb.googlecode.com/svn/trunk@81 583d1f64-3c3e-0410-8459-0f15fcd77d59
  • Loading branch information...
1 parent c83e24a commit 11964cd8f2b0be9c971e866458063bb00614ddff matthew.dempsky committed Jun 23, 2008
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/mochiweb_request.erl
View
@@ -277,7 +277,6 @@ respond({Code, ResponseHeaders, Body}) ->
%% @spec not_found() -> response()
%% @doc Alias for <code>not_found([])</code>.
-%% @doc respond({404, [{"Content-Type", "text/plain"}], "Not found."}).
not_found() ->
not_found([]).
@@ -472,7 +471,7 @@ serve_file(Path, DocRoot) ->
serve_file(Path, DocRoot, ExtraHeaders) ->
case mochiweb_util:safe_relative_path(Path) of
undefined ->
- not_found();
+ not_found(ExtraHeaders);
RelPath ->
FullPath = filename:join([DocRoot, RelPath]),
File = case filelib:is_dir(FullPath) of

0 comments on commit 11964cd

Please sign in to comment.