git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH v2] http: honnor empty http.proxy option to bypass proxy

From
Jeff King <peff@peff.net>
Date
Apr 11, 2017, 14:59 UTC
Message-ID
<20170411145917.mjhwfgc5vmgwtx5x@sigill.intra.peff.net>
In-Reply-To
<CAHNKnsRxNMS4fYTaoHSRgcTmCr+rcjVOGE1kqJGHqLTgBxdC0w@mail.gmail.com>
On Tue, Apr 11, 2017 at 05:56:56PM +0300, Sergey Ryazanov wrote:
Show 14 quoted lines
> > I don't know _what_ "https://" should do. It's clearly bogus. But
> > telling curl to use the defaults seems funny. In that sense, your
> > original was much better (we'd feed it to curl, which would be free to
> > complain).
> >
> 
> I thought about this situation too. IMHO the best solution here is to
> check host after credential_from_url() call. If host is NULL then we
> should show warning message and exit. Then user could fix its
> configuration.
> 
> Since I in any case will send v3 with grammar fixes then I could add
> new patch to the series. This new patch will check host for NULL and
> print warning message. Are you Ok with such solution?

Yeah, I think that would be fine. It pretty clearly seems like an error, so any behavior that isn't "quietly pretend that there is no proxy" is probably fine.

-Peff
Previous: Sergey Ryazanov
Message 6 of 6 in “http: honnor empty http.proxy option to bypass proxy”
  1. http: honnor empty http.proxy option to bypass proxySergey Ryazanov, Apr 11, 2017
  2. Ævar Arnfjörð BjarmasonApr 11, 2017
  3. Sergey RyazanovApr 11, 2017
  4. Jeff KingApr 11, 2017
  5. Sergey RyazanovApr 11, 2017
  6. Jeff KingApr 11, 2017

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.