This commit is contained in:
thosakwe 2016-12-22 20:49:30 -05:00
parent cdfc734271
commit 98d9913b16
3 changed files with 4 additions and 4 deletions

View file

@ -1,6 +1,6 @@
# angel_framework # angel_framework
[![pub 1.0.0-dev.38](https://img.shields.io/badge/pub-1.0.0--dev.38-red.svg)](https://pub.dartlang.org/packages/angel_framework) [![pub 1.0.0-dev.39](https://img.shields.io/badge/pub-1.0.0--dev.39-red.svg)](https://pub.dartlang.org/packages/angel_framework)
[![build status](https://travis-ci.org/angel-dart/framework.svg)](https://travis-ci.org/angel-dart/framework) [![build status](https://travis-ci.org/angel-dart/framework.svg)](https://travis-ci.org/angel-dart/framework)
Core libraries for the Angel Framework. Core libraries for the Angel Framework.

View file

@ -135,10 +135,10 @@ class ResponseContext extends Extensible {
/// based on the provided params. /// based on the provided params.
/// ///
/// See [Router]#navigate for more. :) /// See [Router]#navigate for more. :)
void redirect(url, {bool absolute: true, int code: 301}) { void redirect(url, {bool absolute: true, int code: 302}) {
headers[HttpHeaders.LOCATION] = headers[HttpHeaders.LOCATION] =
url is String ? url : app.navigate(url, absolute: absolute); url is String ? url : app.navigate(url, absolute: absolute);
statusCode = code ?? 301; statusCode = code ?? 302;
write(''' write('''
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>

View file

@ -1,5 +1,5 @@
name: angel_framework name: angel_framework
version: 1.0.0-dev.38 version: 1.0.0-dev.39
description: Core libraries for the Angel framework. description: Core libraries for the Angel framework.
author: Tobe O <thosakwe@gmail.com> author: Tobe O <thosakwe@gmail.com>
homepage: https://github.com/angel-dart/angel_framework homepage: https://github.com/angel-dart/angel_framework