diff options
| author | 2006-07-11 14:39:23 +0000 | |
|---|---|---|
| committer | 2006-07-11 14:39:23 +0000 | |
| commit | 31958fcac3198685291b072743f11300d27251af (patch) | |
| tree | a77a1721ab40b1bdb92080b61e028b4b58996289 /src/modules/m_httpd.cpp | |
| parent | Stuff for adding extra headers to a response (for Authorization: and Location... (diff) | |
| download | inspircd++-31958fcac3198685291b072743f11300d27251af.tar.gz inspircd++-31958fcac3198685291b072743f11300d27251af.tar.bz2 inspircd++-31958fcac3198685291b072743f11300d27251af.zip | |
Make var const
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4334 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_httpd.cpp')
| -rw-r--r-- | src/modules/m_httpd.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_httpd.cpp b/src/modules/m_httpd.cpp index 3d47ed042..e0a3e9d5c 100644 --- a/src/modules/m_httpd.cpp +++ b/src/modules/m_httpd.cpp @@ -164,7 +164,7 @@ class HttpSocket : public InspSocket } } - void SendHeaders(unsigned long size, int response, std::string &extraheaders) + void SendHeaders(unsigned long size, int response, const std::string &extraheaders) { struct tm *timeinfo = localtime(&TIME); this->Write("HTTP/1.1 "+ConvToStr(response)+" "+Response(response)+"\r\nDate: "); @@ -197,7 +197,7 @@ class HttpSocket : public InspSocket if ((http_version != "HTTP/1.1") && (http_version != "HTTP/1.0")) { - SendHeaders(0, 505); + SendHeaders(0, 505, ""); } else { |
