aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Draxinger <Wolfgang.Draxinger@physik.uni-muenchen.de>2013-07-19 20:10:50 +0200
committerWolfgang Draxinger <Wolfgang.Draxinger@physik.uni-muenchen.de>2013-07-19 20:10:50 +0200
commitff044e4665ad6459889ee840640e8ff0bd86297f (patch)
tree6a3301d9e4af4ef7810d76e51fdd00df41560a1b
parent8f5ea60c40d61a1a99037eb5990ae0846f01b51b (diff)
parentcfd0ed185c7b9bbcef04e84ef41074d054ca8cd0 (diff)
downloadlitheweb-ff044e4665ad6459889ee840640e8ff0bd86297f.tar.gz
litheweb-ff044e4665ad6459889ee840640e8ff0bd86297f.tar.bz2
Merge branch 'master' of mhzoctdev.maiman:/srv/git/mhzoct/picoweb
-rw-r--r--picohttp.c7
-rw-r--r--picohttp.h2
2 files changed, 3 insertions, 6 deletions
diff --git a/picohttp.c b/picohttp.c
index 0e6a360..84e0238 100644
--- a/picohttp.c
+++ b/picohttp.c
@@ -1071,7 +1071,7 @@ int picohttpResponseSendHeaders (
int picohttpResponseWrite (
struct picohttpRequest * const req,
size_t len,
- char const *buf )
+ void const *buf )
{
int e;
@@ -1159,14 +1159,11 @@ replay:
} else {
if( mp->in_boundary )
{
-#if 1
if( '\r' == ch ) {
mp->replay = mp->in_boundary-1;
mp->mismatch = mp->req->query.multipartboundary[mp->replay];
mp->in_boundary = 1;
- } else
-#endif
- {
+ } else {
mp->mismatch = ch;
mp->replay = mp->in_boundary;
mp->in_boundary = 0;
diff --git a/picohttp.h b/picohttp.h
index 644761f..83cb5f2 100644
--- a/picohttp.h
+++ b/picohttp.h
@@ -170,7 +170,7 @@ int picohttpResponseSendHeader (
int picohttpResponseWrite (
struct picohttpRequest * const req,
size_t len,
- char const *buf );
+ void const *buf );
int picohttpGetch(struct picohttpRequest * const req);