rem:   if (file.exists() && file.isDirectory()) { file.append("index.html"); if (!file.exists() || file.isDirectory()) { metadata._bag.setPropertyAsInterface("directory", file.parent); this._indexHandler(metadata, response); return; } }   if (!file.exists()) throw HTTP_404;   dumpn("*** handling '" + path + "' as mapping to " + file.path); this._writeFileResponse(file, response);  maybeAddHeaders(file, metadata, response); } catch (e) {  throw e; } 
add: maybeAddHeaders(file, metadata, response); 
context:   _handleDefault: function(metadata, response)  {    try    {      response.setStatusLine(metadata.httpVersion, 200, "OK");      var path = metadata.path;      NS_ASSERT(path.charAt(0) == "/");      // determine the actual on-disk file; this requires finding the deepest      // path-to-directory mapping in the requested URL      var file = this._getFileForPath(path);      // the "file" might be a directory, in which case we either serve the      // contained index.html or make the index handler write the response      if (file.exists() && file.isDirectory())      {        file.append("index.html"); // make configurable?        if (!file.exists() || file.isDirectory())        {          metadata._bag.setPropertyAsInterface("directory", file.parent);          this._indexHandler(metadata, response);          return;        }      }      // alternately, the file might not exist      if (!file.exists())        throw HTTP_404;      // finally...      dumpn("*** handling '" + path + "' as mapping to " + file.path);      this._writeFileResponse(file, response);      maybeAddHeaders(file, metadata, response);    }    catch (e)    {      // something failed, but make the calling code handle Response cleanup      throw e;    }  },
meta: 10520	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/10520/4424fe78e8c7d380e10559e1b6c801b716baf045/httpd.js/clean/netwerk/test/httpserver/httpd.js