Network.html: removed ; from location

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@4658 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
danielr 17 years ago
parent 319144f4b2
commit ab330cfdca

@ -505,16 +505,16 @@ public class Network {
if (lastSemicolon > 0) { if (lastSemicolon > 0) {
// ; Location ) // ; Location )
location = (firstClosedParenthesis > 0) ? userAgent.substring(lastSemicolon, firstClosedParenthesis).trim() location = (firstClosedParenthesis > 0) ? userAgent.substring(lastSemicolon + 1, firstClosedParenthesis)
: userAgent.substring(lastSemicolon + 1).trim(); .trim() : userAgent.substring(lastSemicolon + 1).trim();
} else { } else {
if (firstOpenParenthesis > 0) { if (firstOpenParenthesis > 0) {
if (firstClosedParenthesis > 0) { if (firstClosedParenthesis > 0) {
// ( Location ) // ( Location )
location = userAgent.substring(firstOpenParenthesis, firstClosedParenthesis).trim(); location = userAgent.substring(firstOpenParenthesis + 1, firstClosedParenthesis).trim();
} else { } else {
// ( Location <end> // ( Location <end>
location = userAgent.substring(firstOpenParenthesis).trim(); location = userAgent.substring(firstOpenParenthesis + 1).trim();
} }
} else { } else {
location = ""; location = "";

@ -50,8 +50,8 @@ public class HttpFactory {
/** /**
* generates a new HttpClient object with given header and timeout * generates a new HttpClient object with given header and timeout
* *
* @param header * @param header used for all HTTP-requests (unless another one is set)
* @param timeout * @param timeout in milliseconds
* @return * @return
*/ */
public static HttpClient newClient(httpHeader header, int timeout) { public static HttpClient newClient(httpHeader header, int timeout) {

@ -248,7 +248,7 @@ public final class yacyClient {
* @throws IOException * @throws IOException
*/ */
private static byte[] wput(final String url, String vhost, final Map<String, ?> post) throws IOException { private static byte[] wput(final String url, String vhost, final Map<String, ?> post) throws IOException {
HttpClient client = HttpFactory.newClient(null, 12000); HttpClient client = HttpFactory.newClient(null, 3600000); // abort after 1 hour
client.setProxy(proxyConfig()); client.setProxy(proxyConfig());
// address vhost // address vhost

Loading…
Cancel
Save