[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[myserver-commit] [2770] Fixed problem.
From: |
Giuseppe Scrivano |
Subject: |
[myserver-commit] [2770] Fixed problem. |
Date: |
Fri, 29 Aug 2008 21:50:39 +0000 |
Revision: 2770
http://svn.sv.gnu.org/viewvc/?view=rev&root=myserver&revision=2770
Author: gscrivano
Date: 2008-08-29 21:50:39 +0000 (Fri, 29 Aug 2008)
Log Message:
-----------
Fixed problem. Don't call getPath twice
Modified Paths:
--------------
trunk/myserver/src/http.cpp
Modified: trunk/myserver/src/http.cpp
===================================================================
--- trunk/myserver/src/http.cpp 2008-08-29 19:30:39 UTC (rev 2769)
+++ trunk/myserver/src/http.cpp 2008-08-29 21:50:39 UTC (rev 2770)
@@ -734,39 +734,6 @@
filename.assign(uri);
td->buffer->setLength(0);
- if(td->request.isKeepAlive())
- {
- td->response.connection.assign("keep-alive");
- }
-
- /*!
- *td->filenamePath is the file system mapped path while filename
- *is the uri requested. systemrequest is 1 if the file is in
- *the system directory.
- *If filename is already mapped on the file system don't map it again.
- */
- if(yetmapped)
- {
- td->filenamePath.assign(filename);
- }
- else
- {
- /*!
- *If the client tries to access files that aren't in the
- *web directory send a 401 error.
- */
- translateEscapeString(filename);
- if(filename.length() && (filename[0] != '\0')&&
- (FilesUtility::getPathRecursionLevel(filename) < 1))
- {
- return raiseHTTPError(401);
- }
- /*! getPath will alloc the buffer for filenamePath. */
- ret = getPath(td->filenamePath, filename.c_str(), systemrequest);
- if(ret != 200)
- return raiseHTTPError(ret);
- }
-
if(!systemrequest)
{
ret = Http::preprocessHttpRequest(filename, yetmapped, &permissions);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [myserver-commit] [2770] Fixed problem.,
Giuseppe Scrivano <=