diff options
author | Wolfgang Draxinger <Wolfgang.Draxinger@physik.uni-muenchen.de> | 2013-07-19 14:24:02 +0200 |
---|---|---|
committer | Wolfgang Draxinger <Wolfgang.Draxinger@physik.uni-muenchen.de> | 2013-07-19 14:24:02 +0200 |
commit | 9689e87ed54246598b154750aa2afc1735283ba7 (patch) | |
tree | a50d525d5acb4b8bb9d70b6ed719a21095a2b42d /picohttp.h | |
parent | 9fec30ee4e98dee6411280547d861a30c76c626a (diff) | |
download | litheweb-9689e87ed54246598b154750aa2afc1735283ba7.tar.gz litheweb-9689e87ed54246598b154750aa2afc1735283ba7.tar.bz2 |
multipart boundary separation totally broken with runs of <CR>s; I must approach this differently.
Diffstat (limited to 'picohttp.h')
-rw-r--r-- | picohttp.h | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -47,10 +47,10 @@ #define PICOHTTP_STATUS_505_HTTP_VERSION_NOT_SUPPORTED 505 struct picohttpIoOps { - int (*read)(size_t /*count*/, char* /*buf*/, void*); - int (*write)(size_t /*count*/, char const* /*buf*/, void*); + int (*read)(size_t /*count*/, void* /*buf*/, void*); + int (*write)(size_t /*count*/, void const* /*buf*/, void*); int (*getch)(void*); // returns negative value on error - int (*putch)(char, void*); + int (*putch)(int, void*); int (*flush)(void*); void *data; }; @@ -120,8 +120,8 @@ struct picohttpRequest { size_t contentlength; uint8_t contentencoding; uint8_t transferencoding; - char multipartboundary[PICOHTTP_MULTIPARTBOUNDARY_MAX_LEN+1]; - char prev_ch[5]; + unsigned char multipartboundary[PICOHTTP_MULTIPARTBOUNDARY_MAX_LEN+1]; + unsigned char prev_ch[5]; size_t chunklength; } query; struct { |