Browse Source

fixed bug in new response handling

master
Georg Hopp 14 years ago
parent
commit
4eb98a5a16
  1. 22
      include/interface/http_intro.h
  2. 3
      src/http/response/writer/write.c

22
include/interface/http_intro.h

@ -0,0 +1,22 @@
#ifndef __HTTP_INTRO_H__
#define __HTTP_INTRO_H__
#include <sys/types.h>
typedef size_t (* fptr_httpIntroSizeGet)(void *);
typedef char * (* fptr_httpIntroToString)(void *, char *);
extern const struct interface i_HttpIntro;
struct i_HttpIntro {
const struct interface * const _;
fptr_httpIntroSizeGet sizeGet;
fptr_httpIntroToString toString;
};
extern size_t httpIntroSizeGet(void *);
extern char * httpIntroToString(void *, char *);
#endif // __HTTP_INTRO_H__
// vim: set ts=4 sw=4:

3
src/http/response/writer/write.c

@ -111,6 +111,9 @@ httpResponseWriterWrite(HttpResponseWriter this, int fd)
this->written += temp;
this->pstart += temp;
this->pstart = (1024 == this->pstart)?
0 : this->pstart;
}
break;

Loading…
Cancel
Save