@@ -135,7 +135,7 @@ handle('GET', [<<"decoded-list">>], Req) ->
135135handle ('GET' , [<<" sendfile" _Req ) -> 
136136    % % Returning {file, "/path/to/file"} instead of the body results
137137    % % in Elli using sendfile.
138-     F     =  " README.md" 
138+     F     =  filename : join ( code : priv_dir ( elli ),  " README.md" ) ,
139139    {ok , [], {file , F }};
140140
141141handle ('GET' , [<<" send_no_file" _Req ) -> 
@@ -145,14 +145,14 @@ handle('GET', [<<"send_no_file">>], _Req) ->
145145    {ok , [], {file , F }};
146146
147147handle ('GET' , [<<" sendfile" " error" _Req ) -> 
148-     F     =  " test " 
148+     F     =  code : priv_dir ( elli ) ,
149149    {ok , [], {file , F }};
150150
151151handle ('GET' , [<<" sendfile" " range" Req ) -> 
152152    % % Read the Range header of the request and use the normalized
153153    % % range with sendfile, otherwise send the entire file when
154154    % % no range is present, or respond with a 416 if the range is invalid.
155-     F      =  " README.md" 
155+     F      =  filename : join ( code : priv_dir ( elli ),  " README.md" ) ,
156156    {ok , [], {file , F , elli_request :get_range (Req )}};
157157
158158handle ('GET' , [<<" compressed" _Req ) -> 
0 commit comments