Changeset 32731


Ignore:
Timestamp:
Jul 17, 2017, 8:01:43 AM (4 weeks ago)
Author:
brainslayer
Message:

fix read procedure

Location:
src/router/httpd
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/router/httpd/httpd.c

    r32730 r32731  
    641641        while (wfgets(cur, line + LINE_LEN - cur, conn_fp) != 0)        //jimmy,https,8/4/2003
    642642        {
    643 
    644643                if (strcmp(cur, "\n") == 0 || strcmp(cur, "\r\n") == 0) {
    645644                        break;
     
    10071006                        }
    10081007
    1009                         if (handler->input)
     1008                        if (handler->input) {
    10101009                                handler->input(file, conn_fp, cl, boundary);
     1010                        }
    10111011#if defined(linux)
    10121012#ifdef HAVE_HTTPS
     
    17911791        } else
    17921792#endif
    1793                 ret = read(wp->conn_fd, buf, size * n);
     1793                ret = fread(buf, size, n, fp);
    17941794        return ret;
    17951795}
  • src/router/httpd/modules/base.c

    r32621 r32731  
    17261726                stream->post_buf[count] = '\0';;
    17271727                len -= strlen(stream->post_buf);
    1728 
    17291728                /*
    17301729                 * Slurp anything remaining in the request
Note: See TracChangeset for help on using the changeset viewer.