| Index: pkg/http_server/test/utils.dart
|
| diff --git a/pkg/http_server/test/utils.dart b/pkg/http_server/test/utils.dart
|
| index fb8e037c2ba2b3cf2206de249488aa2e0d06eebc..498d159b8cdbf86ebb32671cd3e2a413d97d704f 100644
|
| --- a/pkg/http_server/test/utils.dart
|
| +++ b/pkg/http_server/test/utils.dart
|
| @@ -12,10 +12,19 @@ Future<int> getStatusCode(int port,
|
| String path,
|
| {String host,
|
| bool secure: false,
|
| - DateTime ifModifiedSince}) {
|
| - var uri = (secure ?
|
| - new Uri.https('localhost:$port', path) :
|
| - new Uri.http('localhost:$port', path));
|
| + DateTime ifModifiedSince,
|
| + bool rawPath: false}) {
|
| + var uri;
|
| + if (rawPath) {
|
| + uri = new Uri(scheme: secure ? 'https' : 'http',
|
| + host: 'localhost',
|
| + port: port,
|
| + path: path);
|
| + } else {
|
| + uri = (secure ?
|
| + new Uri.https('localhost:$port', path) :
|
| + new Uri.http('localhost:$port', path));
|
| + }
|
| return new HttpClient().getUrl(uri)
|
| .then((request) {
|
| if (host != null) request.headers.host = host;
|
|
|