pike.git / lib / modules / Tools.pmod / Standalone.pmod / httpserver.pike

version» Context lines:

pike.git/lib/modules/Tools.pmod/Standalone.pmod/httpserver.pike:91:    Stdio.Stat s = file_stat( file );    if( !s )    request->response_and_finish( (["data":    file_not_found(request->not_query),    "type":"text/html",    "error":404]) );    else if( s->isdir )    request->response_and_finish( ([ "data":dirlist(file),    "type":"text/html" ]) );    else -  request->response_and_finish( ([ "file":Stdio.File(file), -  "type":Protocols.HTTP.Server. -  filename_to_type(file) ]) ); +  request->response_and_finish( ([ "file":Stdio.File(file) ]) );   }