]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-http: Removed duplicated code
authorTimo Sirainen <tss@iki.fi>
Sat, 10 Aug 2013 12:00:36 +0000 (15:00 +0300)
committerTimo Sirainen <tss@iki.fi>
Sat, 10 Aug 2013 12:00:36 +0000 (15:00 +0300)
src/lib-http/http-client-request.c

index 1d80c83a9e127f4c8cb8ad88b6d401f17e83d279..1bd4da73c500cb91a64e846b7a8f3f28e0aac528 100644 (file)
@@ -593,19 +593,6 @@ void http_client_request_redirect(struct http_client_request *req,
                }
        }
 
-       /* 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);