浏览代码

http: merge two "case" statements

Michael Kaufmann 5 年之前
父节点
当前提交
2a2404153b
共有 1 个文件被更改,包括 0 次插入3 次删除
  1. 0 3
      lib/http.c

+ 0 - 3
lib/http.c

@@ -450,9 +450,6 @@ static CURLcode http_perhapsrewind(struct connectdata *conn)
     /* figure out how much data we are expected to send */
     switch(data->set.httpreq) {
     case HTTPREQ_POST:
-      if(data->state.infilesize != -1)
-        expectsend = data->state.infilesize;
-      break;
     case HTTPREQ_PUT:
       if(data->state.infilesize != -1)
         expectsend = data->state.infilesize;