Commit 0578b2c6 authored by Paweł Wegner's avatar Paweł Wegner
Browse files

Request: fire error when method not implemented.

parent b85135e3
......@@ -142,7 +142,10 @@ template <class T>
int Request<T>::send(HttpRequest* request, std::istream& input,
std::ostream& output, std::ostream* error,
ProgressFunction download, ProgressFunction upload) {
if (!request) return HttpRequest::Aborted;
if (!request) {
this->error(HttpRequest::Aborted, "Not available.");
return HttpRequest::Aborted;
}
int code;
try {
code = request->send(input, output, error, httpCallback(download, upload));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment