diff options
author | Carlos Martín Nieto <carlos@cmartin.tk> | 2011-10-05 00:42:27 +0200 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2011-10-12 21:33:19 +0200 |
commit | f9613325f1e981c918e63020dee2a843b3c8ab75 (patch) | |
tree | 8d85b3aeba4aa8f731f00fadb72f491f7fda4f53 /src/netops.c | |
parent | cbb2feded6b67280bda5c8081e05ce8725e2d065 (diff) | |
download | libgit2-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.c | 4 |
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 */); |