[prev in list] [next in list] [prev in thread] [next in thread] 

List:       dovecot-cvs
Subject:    dovecot-2.2: lib-http: Removed duplicated code
From:       dovecot () dovecot ! org (dovecot at dovecot ! org)
Date:       2013-08-10 12:00:46
Message-ID: hg.7fe7cb56b4a6.1376136046.6920021320469856403 () localhost ! localdomain
[Download RAW message or body]

details:   http://hg.dovecot.org/dovecot-2.2/rev/7fe7cb56b4a6
changeset: 16684:7fe7cb56b4a6
user:      Timo Sirainen <tss at iki.fi>
date:      Sat Aug 10 15:00:36 2013 +0300
description:
lib-http: Removed duplicated code

diffstat:

 src/lib-http/http-client-request.c |  13 -------------
 1 files changed, 0 insertions(+), 13 deletions(-)

diffs (23 lines):

diff -r 9aa9944bd96e -r 7fe7cb56b4a6 src/lib-http/http-client-request.c
--- a/src/lib-http/http-client-request.c	Thu Aug 08 22:37:35 2013 +0300
+++ b/src/lib-http/http-client-request.c	Sat Aug 10 15:00:36 2013 +0300
@@ -593,19 +593,6 @@
 		}
 	}
 
-	/* rewind payload stream */
-	if (req->payload_input != NULL && req->payload_size > 0 && status != 303) {
-		if (req->payload_input->v_offset != req->payload_offset &&
-			!req->payload_input->seekable) {
-			http_client_request_error(req,
-				HTTP_CLIENT_REQUEST_ERROR_ABORTED,
-				"Redirect failed: Cannot resend payload; stream is not seekable");
-			return;
-		} else {
-			i_stream_seek(req->payload_input, req->payload_offset);
-		}
-	}
-
 	newport = (url->have_port ? url->port : (url->have_ssl ? 443 : 80));
 	target = http_url_create_target(url);
 

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic