diff options
Diffstat (limited to 'Bugzilla/CGI.pm')
-rw-r--r-- | Bugzilla/CGI.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Bugzilla/CGI.pm b/Bugzilla/CGI.pm index d7934f89b..4af6a933d 100644 --- a/Bugzilla/CGI.pm +++ b/Bugzilla/CGI.pm @@ -347,10 +347,10 @@ sub require_https { my ($self, $url) = @_; # Do not create query string if data submitted via XMLRPC # since we want the data to be resubmitted over POST method. - my $query = Bugzilla->usage_mode == USAGE_MODE_WEBSERVICE ? 0 : 1; + my $query = Bugzilla->usage_mode == USAGE_MODE_XMLRPC ? 0 : 1; # XMLRPC clients (SOAP::Lite at least) requires 301 to redirect properly # and do not work with 302. - my $status = Bugzilla->usage_mode == USAGE_MODE_WEBSERVICE ? 301 : 302; + my $status = Bugzilla->usage_mode == USAGE_MODE_XMLRPC ? 301 : 302; if (defined $url) { $url .= $self->url('-path_info' => 1, '-query' => $query, '-relative' => 1); } else { |