Download raw body.
optimize got-fetch-http a bit
On Thu, Apr 17, 2025 at 01:59:30PM +0200, Omar Polo wrote:
> Stefan Sperling <stsp@stsp.name> wrote:
> > On Tue, Apr 15, 2025 at 08:11:42AM +0200, op@omarpolo.com wrote:
> > > +
> > > + if (out != NULL) {
> > > + fwrite(rbuf->buf + rbuf->cur, 1, avail, out);
> >
> > Please check for errors from fwrite() instead of ignoring them.
> > I realize this is always going to stdout, but I would prefer to keep
> > error checking idioms in place everywhere.
>
> Fair enough; there were none before and that's why I haven't added them,
> but I agree. Here's an updated diff.
thanks, ok by me!
optimize got-fetch-http a bit