Skip to content

Commit

Permalink
fixed proxy/scraper
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@385 6c8d7289-2bf4-0310-a012-ef5d649a1542
  • Loading branch information
orbiter committed Jul 7, 2005
1 parent 419f8fb commit b79070b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
16 changes: 13 additions & 3 deletions source/de/anomic/http/httpdProxyHandler.java
Expand Up @@ -576,9 +576,19 @@ private void fulfillRequestFromWeb(Properties conProp, URL url,String ext, httpH
null,
switchboard.defaultProxyProfile
);

// make output stream
hfos = (gzippedOut != null) ? gzippedOut : ((chunkedOut != null)? chunkedOut : respond);

// handle file types and make (possibly transforming) output stream
if ((!(transformer.isIdentityTransformer())) &&
((ext == null) || (!(plasmaParser.mediaExtContains(ext)))) &&
(plasmaParser.realtimeParsableMimeTypesContains(res.responseHeader.mime()))) {
// make a transformer
this.theLogger.logDebug("create transformer for url " + url);
hfos = new htmlFilterOutputStream((gzippedOut != null) ? gzippedOut : ((chunkedOut != null)? chunkedOut : respond), null, transformer, (ext.length() == 0));
} else {
// simply pass through without parsing
this.theLogger.logDebug("create passthrough for url " + url + ", extension '" + ext + "', mime-type '" + res.responseHeader.mime() + "'");
hfos = (gzippedOut != null) ? gzippedOut : ((chunkedOut != null)? chunkedOut : respond);
}

// handle incoming cookies
handleIncomingCookies(res.responseHeader, host, ip);
Expand Down
1 change: 1 addition & 0 deletions yacy.blue
@@ -1 +1,2 @@
ebcblue
und

0 comments on commit b79070b

Please sign in to comment.