From dfa177be32dfce033edcfa5d61695e75a8efaa38 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Wed, 14 Sep 2011 07:42:46 +0200 Subject: [PATCH] Use returned page response. This fixes redirects. --- src/main/java/net/pterodactylus/sone/web/page/PageToadlet.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/pterodactylus/sone/web/page/PageToadlet.java b/src/main/java/net/pterodactylus/sone/web/page/PageToadlet.java index ed01294..2d1f35a 100644 --- a/src/main/java/net/pterodactylus/sone/web/page/PageToadlet.java +++ b/src/main/java/net/pterodactylus/sone/web/page/PageToadlet.java @@ -146,7 +146,7 @@ public class PageToadlet extends Toadlet implements LinkEnabledCallback { try { pageBucket = pageRequest.getToadletContext().getBucketFactory().makeBucket(-1); Response pageResponse = new Response(pageBucket.getOutputStream()); - page.handleRequest(pageRequest, pageResponse); + pageResponse = page.handleRequest(pageRequest, pageResponse); MultiValueTable headers = new MultiValueTable(); if (pageResponse.getHeaders() != null) { for (Header header : pageResponse.getHeaders()) { -- 2.7.4