summaryrefslogtreecommitdiff
path: root/lib/rtsp.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2015-06-07 23:52:34 +0200
committerDaniel Stenberg <daniel@haxx.se>2015-06-14 23:31:01 +0200
commitff7097f72c26a9d389f135f76cb28e10ca30f4c1 (patch)
tree25d9e6ec57b9ee38c7a31120430f7c8d7034ce28 /lib/rtsp.c
parent55fc47a40130fd6ec78fcb83da3ecedb702fa0f7 (diff)
downloadcurl-ff7097f72c26a9d389f135f76cb28e10ca30f4c1.tar.gz
urldata: store POST size in state.infilesize too
... to simplify checking when PUT _or_ POST have completed. Reported-by: Frank Meier Bug: http://curl.haxx.se/mail/lib-2015-06/0019.html
Diffstat (limited to 'lib/rtsp.c')
-rw-r--r--lib/rtsp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rtsp.c b/lib/rtsp.c
index c5ca75723..5d61c6fe2 100644
--- a/lib/rtsp.c
+++ b/lib/rtsp.c
@@ -495,8 +495,8 @@ static CURLcode rtsp_do(struct connectdata *conn, bool *done)
}
else {
- postsize = (data->set.postfieldsize != -1)?
- data->set.postfieldsize:
+ postsize = (data->state.infilesize != -1)?
+ data->state.infilesize:
(data->set.postfields? (curl_off_t)strlen(data->set.postfields):0);
data->set.httpreq = HTTPREQ_POST;
}