<div dir="ltr"><div>Thank you, Matthew, for the patch.<br><br></div>Will it be possible to raise a pull request from this? It will help us track this more, and keep you updated on the status, and to be able to provide us with more input while working on it.<br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, May 14, 2014 at 11:27 PM, Matthew Mallard <span dir="ltr"><<a href="mailto:mqm@q-technologies.com.au" target="_blank">mqm@q-technologies.com.au</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi,<div><br></div><div>Long story, but I’m using a config where I’m connecting to the Plackup instance through an SSH tunnel. The users I’m developing for will connect through an Apache reverse proxy to the same environment. Anyhow, the behind_proxy setting was causing my SSH tunnel session to barf on splitting an uninitialised variable. This fixes it - should be harmless to put in for everyone, but a bit safer for the fringe cases:</div>
<div><br></div><div><div>--- /perf/perl/lib/perl5/Dancer2/Core/Request.pm<span style="white-space:pre-wrap"> </span>2014-05-12 14:23:07.000000000 +1000</div><div>+++ /perf/perl/lib/perl5/Dancer2/Core/Request.pm.bak<span style="white-space:pre-wrap"> </span>2014-05-12 14:26:28.<a href="tel:049744396" value="+97249744396" target="_blank">049744396</a> +1000</div>
<div>@@ -222,7 +222,7 @@</div><div> sub host {</div><div> my ($self) = @_;</div><div><br></div><div>- if ( $self->is_behind_proxy && $self->env->{HTTP_X_FORWARDED_HOST} ) {</div><div>+ if ( $self->is_behind_proxy ) {</div>
<div> my @hosts = split /\s*,\s*/, $self->env->{HTTP_X_FORWARDED_HOST}, 2;</div><div> return $hosts[0];</div><div> } else {</div></div><div><br></div><div><br><div>
<div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">
<div style="margin:0px"><font face="Times New Roman"><i>Regards,</i></font></div><div style="margin:0px"><font face="Times New Roman"><i>Matt</i></font></div><div style="margin:0px;font-size:12px;min-height:14px"><br></div>
</div><br></div><br><br>
</div>
<br></div><br><br>
<br></div><br>_______________________________________________<br>
dancer-users mailing list<br>
<a href="mailto:dancer-users@dancer.pm">dancer-users@dancer.pm</a><br>
<a href="http://lists.preshweb.co.uk/mailman/listinfo/dancer-users" target="_blank">http://lists.preshweb.co.uk/mailman/listinfo/dancer-users</a><br>
<br></blockquote></div><br></div>