prefix_ void pykit::detail::InternalServerReply::bufferPostData()
{
QVariant cl (request().header(QNetworkRequest::ContentLengthHeader));
- std::cerr << "postdata contentlength: " << (cl.isValid() ? cl.toString().toStdString() : "invalid") << "\n";
connect(postDevice_, SIGNAL(readyRead()), this, SLOT(postDataReadable()));
connect(postDevice_, SIGNAL(readChannelFinished()), this, SLOT(postDataComplete()));
postData_.open(WriteOnly);
QNetworkRequest const & request,
QIODevice * device)
{
- if (request.url().scheme() != "srv")
+ if (request.url().host() != "pykit")
return QNetworkAccessManager::createRequest(operation, request, device);
-
return new detail::InternalServerReply(operation, request, device, publisher_);
}