[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[myserver-commit] [SCM] GNU MyServer branch, master, updated. v0.9.2-475
From: |
Giuseppe Scrivano |
Subject: |
[myserver-commit] [SCM] GNU MyServer branch, master, updated. v0.9.2-475-g93f9942 |
Date: |
Fri, 22 Apr 2011 19:53:53 +0000 |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU MyServer".
The branch, master has been updated
via 93f9942d7e8750eb195d1f2aba9a4a14434de87d (commit)
from b7b4bdb78b7b6b366b96cfef71c4a5fbc378ef1d (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 93f9942d7e8750eb195d1f2aba9a4a14434de87d
Author: Giuseppe Scrivano <address@hidden>
Date: Fri Apr 22 21:53:53 2011 +0200
Proxy: use HttpHeaders::sendHeader.
diff --git a/myserver/src/http_handler/proxy/proxy.cpp
b/myserver/src/http_handler/proxy/proxy.cpp
index 0c95fb8..f32e489 100644
--- a/myserver/src/http_handler/proxy/proxy.cpp
+++ b/myserver/src/http_handler/proxy/proxy.cpp
@@ -216,11 +216,9 @@ int Proxy::flushToClient (HttpThreadContext* td, Socket&
client,
/* At this point we can modify the response struct before send it to the
client. */
- checkDataChunks (td, &keepalive, &useChunks,
td->response.contentLength.length ());
- u_long hdrLen = HttpHeaders::buildHTTPResponseHeader (td->buffer->getBuffer
(),
- &td->response);
-
- out.getStream ()->write (td->buffer->getBuffer (), hdrLen, &nbw);
+ checkDataChunks (td, &keepalive, &useChunks,
+ td->response.contentLength.length ());
+ HttpHeaders::sendHeader (td->response, *out.getStream (), *td->buffer, td);
if (onlyHeader)
return HttpDataHandler::RET_OK;
-----------------------------------------------------------------------
Summary of changes:
myserver/src/http_handler/proxy/proxy.cpp | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
hooks/post-receive
--
GNU MyServer
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [myserver-commit] [SCM] GNU MyServer branch, master, updated. v0.9.2-475-g93f9942,
Giuseppe Scrivano <=