diff --git a/common/pretty_logging/README.md b/common/pretty_logging/README.md index 3e4e6ba..943cfb2 100644 --- a/common/pretty_logging/README.md +++ b/common/pretty_logging/README.md @@ -34,7 +34,7 @@ var pretty = prettyLog( printFunction: stderr.writeln, omitError: (r) { var err = r.error; - return err is AngelHttpException && err.statusCode != 500; + return err is PlatformHttpException && err.statusCode != 500; }, ); myLogger.onRecord.listen(pretty); diff --git a/common/range_header/example/server.dart b/common/range_header/example/server.dart index 076acd8..8a0f137 100644 --- a/common/range_header/example/server.dart +++ b/common/range_header/example/server.dart @@ -5,7 +5,7 @@ void main() async { /* var app = new Angel(); - var http = new AngelHttp(app); + var http = new PlatformHttp(app); var fs = const LocalFileSystem(); var vDir = new _RangingVirtualDirectory(app, fs.currentDirectory); app.logger = new Logger('range_header') @@ -22,7 +22,7 @@ void main() async { ..addExtension('yaml', 'text/plain') ..addExtension('yml', 'text/plain'); app.fallback(vDir.handleRequest); - app.fallback((req, res) => throw new AngelHttpException.notFound()); + app.fallback((req, res) => throw new PlatformHttpException.notFound()); await http.startServer('127.0.0.1', 3000); print('Listening at ${http.uri}'); */