Fixed showing TOS floater.
This creates a separate events interface structure for CurlResponderBuffer (AICurlResponderBufferEvents) for dealing with received HTTP headers. The headers are passed to the Responder, but only if the class derived from Responder implements completedHeaders (otherwise it makes little sense to even decode the headers). Basically this is a reimplementation of the functionality of the old LLHTTPClientURLAdaptor class.
This commit is contained in:
@@ -278,7 +278,7 @@ static void request(const std::string &url,
|
||||
if ((method != LLURLRequest::HTTP_PUT) && (method != LLURLRequest::HTTP_POST)) {
|
||||
std::string accept = "Accept: ";
|
||||
accept += handler->getAcceptMimeType();
|
||||
req->addHeader(accept.c_str());
|
||||
//AIFIXME req is not defined: req->addHeader(accept.c_str());
|
||||
}
|
||||
|
||||
//AIFIXME: req->setCallback(new HippoRestComplete(handler));
|
||||
@@ -286,7 +286,7 @@ static void request(const std::string &url,
|
||||
if ((method == LLURLRequest::HTTP_PUT) || (method == LLURLRequest::HTTP_POST)) {
|
||||
std::string content = "Content-Type: ";
|
||||
content += body->contentType();
|
||||
req->addHeader(content.c_str());
|
||||
//AIFIXME req is not defined: req->addHeader(content.c_str());
|
||||
//AIFIXME: chain.push_back(LLIOPipe::ptr_t(body));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user