mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 05:33:47 +01:00
Make the strings from #1667 static.
This commit is contained in:
parent
13024c7932
commit
a85ee62e74
@ -1478,7 +1478,7 @@ socks_request_set_socks5_error(socks_request_t *req,
|
||||
req->reply[3] = 0x01; // ATYP field.
|
||||
}
|
||||
|
||||
const char SOCKS_PROXY_IS_NOT_AN_HTTP_PROXY_MSG[] =
|
||||
static const char SOCKS_PROXY_IS_NOT_AN_HTTP_PROXY_MSG[] =
|
||||
"HTTP/1.0 501 Tor is not an HTTP Proxy\r\n"
|
||||
"Content-Type: text/html; charset=iso-8859-1\r\n\r\n"
|
||||
"<html>\n"
|
||||
|
@ -4918,7 +4918,7 @@ peek_connection_has_http_command(connection_t *conn)
|
||||
return peek_buf_has_http_command(conn->inbuf);
|
||||
}
|
||||
|
||||
const char CONTROLPORT_IS_NOT_AN_HTTP_PROXY_MSG[] =
|
||||
static const char CONTROLPORT_IS_NOT_AN_HTTP_PROXY_MSG[] =
|
||||
"HTTP/1.0 501 Tor ControlPort is not an HTTP proxy"
|
||||
"\r\nContent-Type: text/html; charset=iso-8859-1\r\n\r\n"
|
||||
"<html>\n"
|
||||
|
Loading…
Reference in New Issue
Block a user