You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if ( empty($result) || ( isset($http_response_header) && $http_response_header[0] != 'HTTP/1.0 200 OK' ) ) // empty if server is down
can you please move the check for the HTTP version to config?
if ( empty($result) || ( isset($http_response_header) && $http_response_header[0] != 'HTTP/' . config('nlp.http.version') . ' 200 OK' ) ) // empty if server is down
or even better:
if ( empty($result) || ( isset($http_response_header) && !stristr($http_response_header[0], '200 OK' ))) // empty if server is down
currently, my local build returns: "HTTP/1.1 200 OK" (so HTTP/1.1 not HTTP/1.0 ) so all my attempts to use your laravel wrapper package are failing :-(
in NlpClient.php line 175 you have:
can you please move the check for the HTTP version to config?
or even better:
currently, my local build returns: "HTTP/1.1 200 OK" (so HTTP/1.1 not HTTP/1.0 ) so all my attempts to use your laravel wrapper package are failing :-(
the output of my $http_response_header
The text was updated successfully, but these errors were encountered: