Commit a0ce87c51c1a3b1b3b674902148ad28d8e5fa32d

Ben Straub 2012-10-26T13:43:13

Add network transfer callbacks on Windows

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/src/transports/http.c b/src/transports/http.c
index 0efd220..8042aeb 100644
--- a/src/transports/http.c
+++ b/src/transports/http.c
@@ -403,6 +403,7 @@ static int http_recv_cb(gitno_buffer *buf)
 
 	memcpy(buf->data + buf->offset, buffer, recvd);
 	buf->offset += recvd;
+	if (buf->packetsize_cb) buf->packetsize_cb(recvd, buf->packetsize_payload);
 #endif
 
 	return (int)(buf->offset - old_len);