input/soup: report failure in _read()
To report failures to callers who don't use _buffer().
This commit is contained in:
parent
0ef15e5fac
commit
0e1dc79321
@ -308,6 +308,7 @@ input_soup_read(struct input_stream *is, void *ptr, size_t size,
|
||||
assert(!s->alive);
|
||||
g_mutex_unlock(s->mutex);
|
||||
|
||||
g_set_error_literal(error_r, soup_quark(), 0, "HTTP failure");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user