lib: fix segment fault in Response::read
Merge remote-tracking branch 'origin/master'