web64 / php-nlp-client

PHP Client for NLP Server
MIT License
74 stars 13 forks source link

Fixed header interpretation related to HTTP version #2

Open aflorea4 opened 2 years ago

olavski commented 2 years ago

Hi,

Thanks for looking into this issue.

Why is composer.json updated?

There are 100+ lines changed in NlpClient.php. Is it possible to create a PR with just the necessary updates? Is it just this one?

if (empty($result) || (isset($http_response_header) && !str_contains($http_response_header[0], '200 OK')))

If so, I can add a fix myself.

Cheers, Olav