}
}
- /* 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);