chiark
/
gitweb
/
~ian
/
hippotat.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
multipart: process_boundary: Rename, and better docs
[hippotat.git]
/
src
/
bin
/
server.rs
diff --git
a/src/bin/server.rs
b/src/bin/server.rs
index d8bd514d893e939fe4f60e9fa7aeeee55373877a..1fd6695127ae2a2d3531856f0555632a8332bc47 100644
(file)
--- a/
src/bin/server.rs
+++ b/
src/bin/server.rs
@@
-115,7
+115,7
@@
async fn handle(
else if let Some(start) = boundary_iter.next() { start + boundary.len() }
else { throw!(anyhow!("initial boundary not found")) };
else if let Some(start) = boundary_iter.next() { start + boundary.len() }
else { throw!(anyhow!("initial boundary not found")) };
- let comp = multipart::process_
component
+ let comp = multipart::process_
boundary
(&mut warnings, &initial[start..], PartName::m)?
.ok_or_else(|| anyhow!(r#"no "m" component"#))?;
(&mut warnings, &initial[start..], PartName::m)?
.ok_or_else(|| anyhow!(r#"no "m" component"#))?;
@@
-123,7
+123,7
@@
async fn handle(
r#"first multipart component must be name="m""#
)) }
r#"first multipart component must be name="m""#
)) }
- let mut meta = MetadataFieldIterator::new(comp.payload
_start
);
+ let mut meta = MetadataFieldIterator::new(comp.payload);
let client: ClientName = meta.need_parse().context("client addr")?;
let client: ClientName = meta.need_parse().context("client addr")?;