From: Stephan Bosch Date: Thu, 19 May 2016 21:42:14 +0000 (+0200) Subject: lib-http: client: Removed curiously duplicated code. X-Git-Tag: 2.2.25.rc1~120 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d63cb134209aa5c4313cb8f0730722103fc45826;p=thirdparty%2Fdovecot%2Fcore.git 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. --- diff --git a/src/lib-http/http-client-request.c b/src/lib-http/http-client-request.c index 85157625ad..0c1a701363 100644 --- a/src/lib-http/http-client-request.c +++ b/src/lib-http/http-client-request.c @@ -1264,19 +1264,6 @@ void http_client_request_resubmit(struct http_client_request *req) } } - /* 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);