Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix call to file:read_file_info/1 in yaws_dav

  • Loading branch information...
commit 06a2b0eb017b8063eea3411ee7bf12db05dd2aec 1 parent 2a131ff
@vinoski vinoski authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/yaws_dav.erl
View
2  src/yaws_dav.erl
@@ -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,
Please sign in to comment.
Something went wrong with that request. Please try again.