@@ -354,7 +354,6 @@ public static void test_router_success_created () {
354
354
355
355
assert (Soup . Status . CREATED == response. status);
356
356
assert (" /document/5" == response. headers. get_one (" Location" ));
357
- assert (response. head_written);
358
357
}
359
358
360
359
/**
@@ -393,7 +392,6 @@ public static void test_router_redirection () {
393
392
394
393
assert (response. status == Soup . Status . MOVED_TEMPORARILY );
395
394
assert (" http://example.com" == response. headers. get_one (" Location" ));
396
- assert (response. head_written);
397
395
}
398
396
399
397
/**
@@ -417,7 +415,6 @@ public static void test_router_client_error_method_not_allowed () {
417
415
418
416
assert (Soup . Status . METHOD_NOT_ALLOWED == response. status);
419
417
assert (" POST" == response. headers. get_one (" Allow" ));
420
- assert (response. head_written);
421
418
}
422
419
423
420
/**
@@ -437,7 +434,6 @@ public static void test_router_client_error_upgrade_required () {
437
434
438
435
assert (426 == response. status);
439
436
assert (" HTTP/1.1" == response. headers. get_one (" Upgrade" ));
440
- assert (response. head_written);
441
437
}
442
438
443
439
/**
@@ -459,7 +455,6 @@ public static void test_router_server_error () {
459
455
HashTable<string, string> @params;
460
456
461
457
assert (response. status == Soup . Status . INTERNAL_SERVER_ERROR );
462
- assert (response. head_written);
463
458
assert (" text/plain" == response. headers. get_content_type (out @params));
464
459
assert (" charset" in @params);
465
460
assert (" utf-8" == @params[" charset" ]);
@@ -506,7 +501,6 @@ public static void test_router_method_not_allowed () {
506
501
507
502
assert (response. status == 405 );
508
503
assert (" GET, PUT" == response. headers. get_one (" Allow" ));
509
- assert (response. head_written);
510
504
}
511
505
512
506
/**
@@ -538,7 +532,6 @@ public static void test_router_method_not_allowed_excludes_request_method () {
538
532
539
533
assert (response. status == 405 );
540
534
assert (" GET" == response. headers. get_one (" Allow" ));
541
- assert (response. head_written);
542
535
}
543
536
544
537
/**
@@ -553,7 +546,6 @@ public static void test_router_not_found () {
553
546
router. handle (request, response);
554
547
555
548
assert (Soup . Status . NOT_FOUND == response. status);
556
- assert (response. head_written);
557
549
}
558
550
559
551
0 commit comments