(Maybe /etc/hosts binding localhost to the ipv6 ::1 address?)

On Mon, Aug 12, 2013 at 6:01 PM, oxtoacart <notifications@github.com> wrote:

> In src/test/java/org/littleshoot/proxy/TestUtils.java:
>
> >       * @param port the proxy port
> >       * @return instance of HttpClient
> >       */
> >      public static HttpClient createProxiedHttpClient(final int port) {
> >          final HttpClient httpclient = new DefaultHttpClient();
> > -        final HttpHost proxy = new HttpHost("localhost", port, "http");
> > +        // Note: we use 127.0.0.1 here because on OS X, using straight up
>
> For whatever reason, localhost gets special handling on OS X that was
> breaking this test.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/adamfisk/LittleProxy/pull/72/files#r5722852>
> .
>