mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-13 04:29:03 -04:00
Make var const
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4334 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
parent
6322067c90
commit
31958fcac3
@ -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
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user