Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bugfix: problem in import service with missing "Continue" keyword in the HTTP/1.1 100 header #33

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hboie
Copy link

@hboie hboie commented Oct 9, 2020

when the server doesn't send the "Continue" keyword in the "HTTP/1.1 100" header, this header will not be stripped correctly.

Then also the rest of the header will not be stripped correctly, but ends up in the response_body, which causes an expection
when trying to convert the JSON data of the response_body.

…TTP/1.1 100" header, this header will not be stripped correctly.

Then also the rest of the header will not be stripped correctly, but ends up in the response_body, which causes an expection
when trying to convert the JSON data of the response_body.
@david-puente
Copy link

I solve this with:

    $header_size = curl_getinfo($curlHandle, CURLINFO_HEADER_SIZE);
    $this->response_headers = substr($response, 0, $header_size);
    $this->response_body = substr($response, $header_size);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants