Mercurial > dovecot > original-hg > dovecot-2.2
changeset 16684:7fe7cb56b4a6
lib-http: Removed duplicated code
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sat, 10 Aug 2013 15:00:36 +0300 |
parents | 9aa9944bd96e |
children | 1f6059b5c774 |
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 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);