RE: Wt+OAuth2+FastCGI = empty popup after confirming cons... ยป fcgi_multiple_status.patch
src/fcgi/FCGIStream.C | ||
---|---|---|
public:
|
||
FCGIRequest(FCGX_Request *request)
|
||
: request_(request),
|
||
headersCommitted_(false)
|
||
headersCommitted_(false),
|
||
status_(-1)
|
||
{
|
||
in_streambuf_ = new fcgi_streambuf(request_->in, &buf_[0], buf_.size());
|
||
out_streambuf_ = new fcgi_streambuf(request_->out);
|
||
... | ... | |
virtual std::ostream& out() {
|
||
if (!headersCommitted_) {
|
||
headersCommitted_ = true;
|
||
if(status_ > -1 )
|
||
*out_ << "Status: " << status_ << "\r\n";
|
||
*out_ << "\r\n";
|
||
}
|
||
return *out_;
|
||
... | ... | |
virtual void setStatus(int status)
|
||
{
|
||
*out_ << "Status: " << status << "\r\n";
|
||
status_ = status;
|
||
}
|
||
virtual void setContentType(const std::string& value)
|
||
... | ... | |
std::istream *in_;
|
||
std::ostream *out_, *err_;
|
||
bool headersCommitted_;
|
||
int status_;
|
||
};
|
||
}
|
||
src/fcgi/FCGIStream.h | ||
---|---|---|
~FCGIStream();
|
||
virtual WebRequest *getNextRequest(int timeoutsec);
|
||
};
|
||
}
|