mirror of
https://github.com/servo/servo
synced 2026-04-29 19:07:38 +02:00
Headers API constructor and methods
- Reworked the append method to support the inner `hyper::header::Headers`'s HashMap `insert` method, which overwrites entries instead of appending. - Filled out constructor as well as delete, get, has, and set methods. - Updated relevant test expectations
This commit is contained in:
@@ -66,7 +66,7 @@
|
||||
assert_equals(headers2.get(name), String(headerDict[name]),
|
||||
"name: " + name + " has value: " + headerDict[name]);
|
||||
}
|
||||
}, "Create headers whith existing headers");
|
||||
}, "Create headers with existing headers");
|
||||
|
||||
test(function() {
|
||||
var headers = new Headers();
|
||||
|
||||
Reference in New Issue
Block a user