aboutsummaryrefslogtreecommitdiff
path: root/picohttp.h
diff options
context:
space:
mode:
authorWolfgang Draxinger <Wolfgang.Draxinger@physik.uni-muenchen.de>2013-07-19 14:24:02 +0200
committerWolfgang Draxinger <Wolfgang.Draxinger@physik.uni-muenchen.de>2013-07-19 14:24:02 +0200
commit9689e87ed54246598b154750aa2afc1735283ba7 (patch)
treea50d525d5acb4b8bb9d70b6ed719a21095a2b42d /picohttp.h
parent9fec30ee4e98dee6411280547d861a30c76c626a (diff)
downloadlitheweb-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.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/picohttp.h b/picohttp.h
index 380584c..d3931ab 100644
--- a/picohttp.h
+++ b/picohttp.h
@@ -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 {