aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Draxinger <Wolfgang.Draxinger@physik.uni-muenchen.de>2013-07-17 15:24:37 +0200
committerWolfgang Draxinger <Wolfgang.Draxinger@physik.uni-muenchen.de>2013-07-17 15:24:37 +0200
commit5ab9a0131969b669f3682598ee949275c01953a8 (patch)
tree4648caa85ef6cc99e8eef0749ceaef49d9114e42
parent4a2cb21d686979ca9b7b527dd0935d0537a360eb (diff)
downloadlitheweb-5ab9a0131969b669f3682598ee949275c01953a8.tar.gz
litheweb-5ab9a0131969b669f3682598ee949275c01953a8.tar.bz2
in-band signalling in header parsing now uses negative values only.
-rw-r--r--test/bsdsocket.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/bsdsocket.c b/test/bsdsocket.c
index 90b4702..b1ca825 100644
--- a/test/bsdsocket.c
+++ b/test/bsdsocket.c
@@ -149,7 +149,14 @@ void rhUpload(struct picohttpRequest *req)
for(int16_t ch = picohttpMultipartGetch(&mp);
0 <= ch;
ch = picohttpMultipartGetch(&mp) ) {
- fputc(ch, stderr);
+ switch(ch) {
+ case '\r':
+ fputs("--- <CR> ---\n", stderr); break;
+ case '\n':
+ fputs("--- <LF> ---\n", stderr); break;
+
+ default:
+ fputc(ch, stderr);
}
if( !mp.finished ) {
break;