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

fix: empty string in arrayBuffer #447

Merged
merged 2 commits into from
Oct 30, 2024
Merged

fix: empty string in arrayBuffer #447

merged 2 commits into from
Oct 30, 2024

Conversation

ItMaga
Copy link
Member

@ItMaga ItMaga commented Oct 24, 2024

Описание проблемы

Когда приходит заголовок Content-Type: application/octet-stream, может в ответе прийти пустая строка. Например, так происходит при некоторых условиях, в нодовой библиотеке http-outgoing, и в этом случае у нас падает ошибка TypeError("Can't read response data as ArrayBuffer"). Как я понимаю, пустая строка с таким заголовком является валидным

@ItMaga ItMaga requested review from kobezzza and shining-mind and removed request for kobezzza and shining-mind October 24, 2024 14:27
@ItMaga ItMaga merged commit 887ea5e into v4 Oct 30, 2024
5 checks passed
@ItMaga ItMaga deleted the itmaga/empty-array-buffer branch October 30, 2024 09:24
alexeishcherbina pushed a commit that referenced this pull request Dec 4, 2024
* fix: empty string in arrayBuffer

* chore: linter
gretzkiy added a commit that referenced this pull request Dec 9, 2024
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.

3 participants