summaryrefslogtreecommitdiffstats
path: root/cgi
diff options
context:
space:
mode:
authorcebka@lenovo-laptop <cebka@lenovo-laptop>2010-03-12 21:20:38 +0300
committercebka@lenovo-laptop <cebka@lenovo-laptop>2010-03-12 21:20:38 +0300
commit9cb57d681480ca0a2b7b709ba2253b04cb5a6f72 (patch)
treefaa5a047a53f7d24b9ea91c6b33705e08657cc3e /cgi
parent62ca2a4d01114af4ea49454ae44715c393c0ef38 (diff)
downloadrspamd-9cb57d681480ca0a2b7b709ba2253b04cb5a6f72.tar.gz
rspamd-9cb57d681480ca0a2b7b709ba2253b04cb5a6f72.zip
* Handle SERVER_NAME
Diffstat (limited to 'cgi')
-rw-r--r--cgi/rspamd.cgi6
1 files changed, 1 insertions, 5 deletions
diff --git a/cgi/rspamd.cgi b/cgi/rspamd.cgi
index 9802c8703..386bf39af 100644
--- a/cgi/rspamd.cgi
+++ b/cgi/rspamd.cgi
@@ -28,7 +28,6 @@ sub new {
addr => 'localhost',
port => 8080,
standalone => 0,
- server_name => 'localhost',
};
if ($args->{'standalone'}) {
@@ -37,9 +36,6 @@ sub new {
if ($args->{'port'}) {
$self->{'port'} = $args->{'port'};
}
- if ($args->{'server_name'}) {
- $self->{'server_name'} = $args->{'server_name'};
- }
if ($args->{'addr'}) {
$self->{'addr'} = $args->{'addr'};
}
@@ -413,7 +409,7 @@ sub _run_standalone {
}
}
$ENV{SERVER_PORT} = $self->{port};
- $ENV{SERVER_NAME} = $self->{server_name};
+ $ENV{SERVER_NAME} = $self->{addr};
if (my $size = $ENV{CONTENT_LENGTH}) {
$content = '';
while (length($content) < $size) {