summaryrefslogtreecommitdiffstats
path: root/openpgp
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@pep.foundation>2019-10-30 12:59:00 +0100
committerNeal H. Walfield <neal@pep.foundation>2019-10-30 13:03:45 +0100
commitde61cc9cb03856b08370a4965eec5b7ffa139b34 (patch)
tree2d5ea8b11b1162327d60692d5f153d4de17ca97f /openpgp
parentc56982bd795f641b516cb0f5185c630aaa361ce2 (diff)
buffered-reader: Change drop_through to optionally match EOF.
- Change BufferedReader::drop_through to optionally match EOF.
Diffstat (limited to 'openpgp')
-rw-r--r--openpgp/src/armor.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/src/armor.rs b/openpgp/src/armor.rs
index a24cb866..925d04a5 100644
--- a/openpgp/src/armor.rs
+++ b/openpgp/src/armor.rs
@@ -609,7 +609,7 @@ impl<'a> Reader<'a> {
let n = 'search: loop {
if lines > 0 {
// Find the start of the next line.
- self.source.drop_through(&[b'\n'])?;
+ self.source.drop_through(&[b'\n'], true)?;
prefix = Vec::new();
}
lines += 1;