Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removed the code that checks that a directory exists in the case of:

<auth>
	dir= ...
</auth>

as www-authentication is now specified by server path and not filesystem path.


git-svn-id: https://erlyaws.svn.sourceforge.net/svnroot/erlyaws/trunk/yaws@505 9fbdc01b-0d2c-0410-bfb7-fb27d70d8b52
  • Loading branch information...
commit 8cd9bf21a665ef85ec4ada39f1492bbcc0a4e090 1 parent 50644ab
Leon Smith authored
Showing with 2 additions and 8 deletions.
  1. +2 −8 src/yaws_config.erl
View
10 src/yaws_config.erl
@@ -601,14 +601,8 @@ fload(FD, server_auth, GC, C, Cs, Lno, Chars, Auth) ->
[] ->
fload(FD, server_auth, GC, C, Cs, Lno+1, Next, Auth);
["dir", '=', Authdir] ->
- Dir = filename:absname(Authdir),
- case is_dir(Dir) of
- true ->
- A2 = Auth#auth{dir = [Dir|Auth#auth.dir]},
- fload(FD, server_auth, GC, C, Cs, Lno+1, Next, A2);
- false ->
- {error, ?F("Expect directory at line ~w", [Lno])}
- end;
+ A2 = Auth#auth{dir = [Dir|Auth#auth.dir]},
+ fload(FD, server_auth, GC, C, Cs, Lno+1, Next, A2);
["realm", '=', Realm] ->
A2 = Auth#auth{realm = Realm},
fload(FD, server_auth, GC, C, Cs, Lno+1, Next, A2);
Please sign in to comment.
Something went wrong with that request. Please try again.