Permalink
Browse files

Redirect to URIPrefix for paths outside the prefix

  • Loading branch information...
1 parent c0974d9 commit f6a881eeb2349911f0badde9770f657cd0864298 @uu1101 uu1101 committed Feb 9, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/HTTPSock.cpp
View
@@ -219,7 +219,7 @@ void CHTTPSock::GetPage() {
DEBUG("INVALID path => Does not start with prefix [" + m_sURIPrefix + "]");
DEBUG("Expected prefix: " << m_sURIPrefix);
DEBUG("Requested path: " << m_sURI);
- PrintNotFound();
+ Redirect(m_sURI);
} else {
OnPageRequest(m_sURI);
}

0 comments on commit f6a881e

Please sign in to comment.