mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Change debug assertions to specific ones
This commit is contained in:
parent
2cf0077be1
commit
661d234c3c
23 changed files with 53 additions and 53 deletions
|
@ -771,7 +771,7 @@ fn http_network_or_cache_fetch(request: &mut Request,
|
|||
|
||||
// Step 11
|
||||
if cors_flag || (http_request.method != Method::Get && http_request.method != Method::Head) {
|
||||
debug_assert!(http_request.origin != Origin::Client);
|
||||
debug_assert_ne!(http_request.origin, Origin::Client);
|
||||
if let Origin::Origin(ref url_origin) = http_request.origin {
|
||||
if let Some(hyper_origin) = try_immutable_origin_to_hyper_origin(url_origin) {
|
||||
http_request.headers.set(hyper_origin)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue