Permalink
Browse files

fix call to file:read_file_info/1 in yaws_dav

  • Loading branch information...
1 parent 2a131ff commit 06a2b0eb017b8063eea3411ee7bf12db05dd2aec @vinoski vinoski committed Oct 23, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/yaws_dav.erl
View
@@ -808,7 +808,7 @@ if_eval_condition([{true,state,Ref}|T],_Result,_Valid,A,Target,Locks) ->
Valid1 = true,
Result1 andalso if_eval_condition(T,Result1,Valid1,A,Target,Locks);
if_eval_condition([{true,etag,Ref}|T],_Result,Valid,A,Target,Locks) ->
- F = file:read_info(A#arg.docroot++Target),
+ {ok, F} = file:read_file_info(filename:join(A#arg.docroot,Target)),
E = yaws:make_etag(F),
Result1 = (E==Ref),
Valid1 = Valid,

0 comments on commit 06a2b0e

Please sign in to comment.