changeset 20350:08038ef67fbd

lib-http: client: Removed curiously duplicated code. Probably a patch got applied with sufficient fuzz that it duplicated this code fragment, while it actually already existed.
author Stephan Bosch <stephan@dovecot.fi>
date Thu, 19 May 2016 23:42:14 +0200
parents c5983d711b33
children f3e249261abd
files src/lib-http/http-client-request.c
diffstat 1 files changed, 0 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-http/http-client-request.c	Sat May 21 13:17:58 2016 +0200
+++ b/src/lib-http/http-client-request.c	Thu May 19 23:42:14 2016 +0200
@@ -1264,19 +1264,6 @@
 		}
 	}
 
-	/* rewind payload stream */
-	if (req->payload_input != NULL && req->payload_size > 0) {
-		if (req->payload_input->v_offset != req->payload_offset &&
-			!req->payload_input->seekable) {
-			http_client_request_error(&req,
-				HTTP_CLIENT_REQUEST_ERROR_ABORTED,
-				"Resubmission failed: Cannot resend payload; stream is not seekable");
-			return;
-		} else {
-			i_stream_seek(req->payload_input, req->payload_offset);
-		}
-	}
-
 	/* drop payload output stream from previous attempt */
 	if (req->payload_output != NULL)
 		o_stream_unref(&req->payload_output);