summaryrefslogtreecommitdiff
path: root/src/netops.c
diff options
context:
space:
mode:
authorCarlos Martín Nieto <carlos@cmartin.tk>2011-10-05 00:42:27 +0200
committerVicent Marti <tanoku@gmail.com>2011-10-12 21:33:19 +0200
commitf9613325f1e981c918e63020dee2a843b3c8ab75 (patch)
tree8d85b3aeba4aa8f731f00fadb72f491f7fda4f53 /src/netops.c
parentcbb2feded6b67280bda5c8081e05ce8725e2d065 (diff)
downloadlibgit2-f9613325f1e981c918e63020dee2a843b3c8ab75.tar.gz
http: parse the response from the server
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
Diffstat (limited to 'src/netops.c')
-rw-r--r--src/netops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/netops.c b/src/netops.c
index da242795b..5d17e1769 100644
--- a/src/netops.c
+++ b/src/netops.c
@@ -157,9 +157,9 @@ int gitno_send_chunk_size(int s, size_t len)
char str[8] = {0};
int ret;
- ret = p_snprintf(str, sizeof(str), "%zx", len);
+ ret = p_snprintf(str, sizeof(str), "%zx\r\n", len);
if (ret >= (int) sizeof(str)) {
- return git__throw(GIT_ESHORTBUFFER, "Your number is too fucking big");
+ return git__throw(GIT_ESHORTBUFFER, "Your number is too big");
}
return gitno_send(s, str, ret, 0 /* TODO: MSG_MORE */);