15 lines
659 B
Diff
15 lines
659 B
Diff
# must fail: dash_adjacency_attribute_twice
|
|
# an attribute twice read (dash_read::read_xml)
|
|
diff --git a/wai/wai-rs/src/http_binding/dash_read.rs b/wai/wai-rs/src/http_binding/dash_read.rs
|
|
index 71e36cde..ea32b008 100644
|
|
--- a/wai/wai-rs/src/http_binding/dash_read.rs
|
|
+++ b/wai/wai-rs/src/http_binding/dash_read.rs
|
|
@@ -204,7 +204,7 @@ impl<'a> Reader<'a> {
|
|
}
|
|
self.space();
|
|
let v = self.attr_value()?;
|
|
- if !names.insert(k.clone()) {
|
|
+ if !names.insert(k.clone()) && false {
|
|
return Err(malformed(format!("the attribute {k} twice")));
|
|
}
|
|
attrs.push((k, v));
|