diff options
author | Wolfgang Draxinger <Wolfgang.Draxinger@physik.uni-muenchen.de> | 2013-07-17 15:24:37 +0200 |
---|---|---|
committer | Wolfgang Draxinger <Wolfgang.Draxinger@physik.uni-muenchen.de> | 2013-07-17 15:24:37 +0200 |
commit | 5ab9a0131969b669f3682598ee949275c01953a8 (patch) | |
tree | 4648caa85ef6cc99e8eef0749ceaef49d9114e42 /test/bsdsocket.c | |
parent | 4a2cb21d686979ca9b7b527dd0935d0537a360eb (diff) | |
download | litheweb-5ab9a0131969b669f3682598ee949275c01953a8.tar.gz litheweb-5ab9a0131969b669f3682598ee949275c01953a8.tar.bz2 |
in-band signalling in header parsing now uses negative values only.
Diffstat (limited to 'test/bsdsocket.c')
-rw-r--r-- | test/bsdsocket.c | 9 |
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; |