Commit 3dc658dc authored by Liang Ding's avatar Liang Ding

重构请求路由 #61

parent a436a677
......@@ -163,12 +163,6 @@ public class IndexProcessor {
* @param context the specified context
*/
public void showStart(final RequestContext context) {
if (initService.isInited() && null != Solos.getCurrentUser(context.getRequest(), context.getResponse())) {
context.sendRedirect(Latkes.getServePath());
return;
}
String referer = context.param("referer");
if (StringUtils.isBlank(referer)) {
referer = context.header("referer");
......
......@@ -24,6 +24,7 @@ import org.b3log.solo.MockRequest;
import org.b3log.solo.MockResponse;
import org.b3log.solo.util.Solos;
import org.testng.Assert;
import org.testng.annotations.Test;
import java.util.Set;
......@@ -34,7 +35,7 @@ import java.util.Set;
* @version 1.0.1.4, Feb 22, 2019
* @since 1.7.0
*/
//@Test(suiteName = "processor")
@Test(suiteName = "processor")
public class IndexProcessorTestCase extends AbstractTestCase {
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment