diff options
author | jcid <devnull@localhost> | 2008-03-03 15:56:15 +0100 |
---|---|---|
committer | jcid <devnull@localhost> | 2008-03-03 15:56:15 +0100 |
commit | c8d282843a15faaf4bb7e599c5d61b07e9d7ae78 (patch) | |
tree | a2bd32ff9793a4ac9e4018b062e824119cbfc95b /src/IO | |
parent | 253d04a4a52983566904fd7aad53403659f6ae05 (diff) |
- Avoid empty boundary string on zero parts (corner case)
Diffstat (limited to 'src/IO')
-rw-r--r-- | src/IO/http.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/IO/http.c b/src/IO/http.c index bacf4397..8645a411 100644 --- a/src/IO/http.c +++ b/src/IO/http.c @@ -187,7 +187,8 @@ Dstr *Http_get_content_type(const DilloUrl *url) if (eol) dStr_append_l(dstr, start, eol - start); } else { - /* If there are zero parts, should a boundary be specified anyway? */ + /* Zero parts; arbitrary boundary */ + dStr_append_c(dstr, '0'); } dStr_append_c(dstr,'"'); } else { |