Commit 4eb98a5a169e2debf22f5222bd70311dd1bae297

Authored by Georg Hopp
1 parent 1b7ef503

fixed bug in new response handling

  1 +#ifndef __HTTP_INTRO_H__
  2 +#define __HTTP_INTRO_H__
  3 +
  4 +#include <sys/types.h>
  5 +
  6 +typedef size_t (* fptr_httpIntroSizeGet)(void *);
  7 +typedef char * (* fptr_httpIntroToString)(void *, char *);
  8 +
  9 +extern const struct interface i_HttpIntro;
  10 +
  11 +struct i_HttpIntro {
  12 + const struct interface * const _;
  13 + fptr_httpIntroSizeGet sizeGet;
  14 + fptr_httpIntroToString toString;
  15 +};
  16 +
  17 +extern size_t httpIntroSizeGet(void *);
  18 +extern char * httpIntroToString(void *, char *);
  19 +
  20 +#endif // __HTTP_INTRO_H__
  21 +
  22 +// vim: set ts=4 sw=4:
... ...
... ... @@ -111,6 +111,9 @@ httpResponseWriterWrite(HttpResponseWriter this, int fd)
111 111
112 112 this->written += temp;
113 113 this->pstart += temp;
  114 +
  115 + this->pstart = (1024 == this->pstart)?
  116 + 0 : this->pstart;
114 117 }
115 118 break;
116 119
... ...
Please register or login to post a comment