Skip to content

Bugfix/#23 api

Michelle Weidling requested to merge bugfix/#23-api into develop

Bug fix

Related Tickets

#23 (closed)

Summary

The problem stemmed from the way cURL works:

[(23) Failed writing body] happens when a piped program (e.g. grep) closes the read pipe before the previous program is finished writing the whole page.

(https://stackoverflow.com/questions/16703647/why-does-curl-return-error-23-failed-writing-body)

By adding the -N option (no buffering) this shouldn't happen again. But it did, for reasons unclear to me. Thus I separated the cURL result from further information extraction.

This MR also includes:

  • minor linting
  • enabling curl --head by adding HTTP HEAD to the RESTXQ annotations

Changelog

  • I added a statement to the CHANGELOG.

/cc Mathias Göbel, Frank Schneider, Michelle Weidling

Edited by Michelle Weidling

Merge request reports

Loading