Send Netdot-devel mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        https://osl.uoregon.edu/mailman/listinfo/netdot-devel
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Netdot-devel digest..."


Today's Topics:

   1. [Netdot - Bug #1855] (New) Apache 2.4 API change
      ([email protected])


----------------------------------------------------------------------

Message: 1
Date: Mon, 13 Apr 2015 13:32:17 -0700
From: [email protected]
Subject: [Netdot-devel] [Netdot - Bug #1855] (New) Apache 2.4 API
        change
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8


Issue #1855 has been reported by Carlos Vicente.

----------------------------------------
Bug #1855: Apache 2.4 API change
https://osl.uoregon.edu/redmine/issues/1855

Author: Carlos Vicente
Status: New
Priority: Normal
Assignee: Carlos Vicente
Category: RestAPI
Target version: 1.0.8
Resolution: 


<pre>
sub remote_ip
{
    my $self = shift;
    if ($self->{request}->connection->can("remote_ip")) {
        $self->{request}->connection->remote_ip;  # 2.2
    } else {
        $self->{request}->connection->client_ip;  # 2.4
    }
}
</pre>

Usage:

replace  $self->{request}->connection->remote_ip
or $rest->{request}->connection->remote_ip with
$self->remote_ip or $rest->remote_ip.



-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://osl.uoregon.edu/redmine/my/account


------------------------------

_______________________________________________
Netdot-devel mailing list
[email protected]
https://osl.uoregon.edu/mailman/listinfo/netdot-devel


End of Netdot-devel Digest, Vol 97, Issue 6
*******************************************

Reply via email to