[prev in list] [next in list] [prev in thread] [next in thread] 

List:       helix-server-cvs
Subject:    [Server-cvs] protocol/http httpprot.cpp, 1.132.2.8.4.4.8.1, 1.132.2.8.4.4.8.2
From:       zhxinx () helixcommunity ! org
Date:       2013-07-25 7:22:21
[Download RAW message or body]

Update of /cvsroot/server/protocol/http
In directory cvs01.internal.helixcommunity.org:/tmp/cvs-serv27847/http

Modified Files:
      Tag: Cobra_MVP
	httpprot.cpp 
Log Message:
Project
=====
Cobra(Server)
 
Overview
========
With this patch, user can input "192.168.1.101:1080" instead of \
"192.168.1.101:1080/webclient/home.html" in browser to access cobra web client home \
page. (1)     Set default access point if no detailed path specified.
(2)     Delete the top level folder in webclient.zip
 
Branch: Cobra_MVP
 
Files Modified
===========
server/protocol/http/httpprot.cpp
server_rn/nucleus/installer/files/webclient.zip


Index: httpprot.cpp
===================================================================
RCS file: /cvsroot/server/protocol/http/httpprot.cpp,v
retrieving revision 1.132.2.8.4.4.8.1
retrieving revision 1.132.2.8.4.4.8.2
diff -u -d -r1.132.2.8.4.4.8.1 -r1.132.2.8.4.4.8.2
--- httpprot.cpp	17 Jul 2013 10:08:31 -0000	1.132.2.8.4.4.8.1
+++ httpprot.cpp	25 Jul 2013 07:22:14 -0000	1.132.2.8.4.4.8.2
@@ -430,6 +430,11 @@
 STDMETHODIMP_(void)
 HTTPProtocol::OnRequest(HTTPRequestMessage* pMsg)
 {
+    // No specific request location. Default to home page
+    if (strlen(pMsg->url()) <= 1)
+    {
+        pMsg->setURL("/home.html");
+    }
     HTTPResponseMessage* pResp = NULL;
     HX_ASSERT(!m_bResponseNeeded);
 


_______________________________________________
Server-cvs mailing list
Server-cvs@helixcommunity.org
http://lists.helixcommunity.org/mailman/listinfo/server-cvs


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic