1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-10-01 03:36:26 -04:00

1008: show upload progress in local CGI too

This commit is contained in:
Kalle Olavi Niemitalo 2008-06-08 17:30:17 +03:00 committed by Kalle Olavi Niemitalo
parent 2482bdf913
commit 5839aa070a

View File

@ -23,6 +23,7 @@
#include "intl/gettext/libintl.h"
#include "mime/backend/common.h"
#include "network/connection.h"
#include "network/progress.h"
#include "network/socket.h"
#include "osdep/osdep.h"
#include "osdep/sysname.h"
@ -116,10 +117,13 @@ send_post_data(struct connection *conn)
postend = strchr(post, '\n');
if (postend) post = postend + 1;
if (!open_http_post(&http->post, post, &error))
if (!open_http_post(&http->post, post, &error))
abort_connection(conn, error);
else
else {
if (!conn->http_upload_progress && http->post.file_count)
conn->http_upload_progress = init_progress(0);
send_more_post_data(conn->data_socket);
}
}
static void