http/xhr_test.dart should update its expectations for server response headers from dart:io #20580
Labels
area-core-library
SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.
library-io
P2
A bug or feature request we're likely to work on
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
There is a test that currently expects the HTTP server serving test files and data to provide a server header server: 'Dart/0.1 (dart:io)'
Recent changes make HttpServer provide other default headers, and no server header. Either the test should be changed to expect what it provides. The new headers provided by bleeding-edge Dart are:
access-control-allow-origin:*
cache-control:max-age=30
content-encoding:gzip
content-type:text/plain; charset=utf-8
x-content-type-options:nosniff
x-xss-protection:1; mode=block
And the old headers provided by the Dart in tools/testing/bin/linux/dart are:
access-control-allow-origin:*
content-encoding:gzip
server:Dart/1.0 (dart:io)
transfer-encoding:chunked
Feel free to assign the bug to me, and give your input on whether we should be testing these default headers.
The text was updated successfully, but these errors were encountered: