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

feat: support for binary body #4466

Merged
merged 5 commits into from
Nov 26, 2024
Merged

Conversation

amk-dev
Copy link
Contributor

@amk-dev amk-dev commented Oct 22, 2024

This PR adds support for sending binary data as body.

  1. since the binary file is not exported, In hoppscotch-cli, added some changes to not error the request out, like how multipart/form-data is behaving right now.

  2. feat: handle binary files in body hoppscotch-extension#307 adds support for binary files in our browser extension.

@amk-dev amk-dev changed the base branch from main to next October 22, 2024 19:31
@amk-dev amk-dev marked this pull request as ready for review October 28, 2024 12:03
Copy link
Member

@jamesgeorge007 jamesgeorge007 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's an exception while setting Agent as the interceptor. For now, we've decided to show a warning via the inspector regarding the support.

image

The following issues can be revisited:

  • Say, there's a request open with application/octet-stream as the content type and a file chosen. The file is lost while navigating to another tab and returning.
  • Save the above request in a collection, export and re-import. Open the request and observe the tab appear in the dirty state even though no updates happened in between.

@jamesgeorge007 jamesgeorge007 merged commit 80d7dd0 into hoppscotch:next Nov 26, 2024
1 check passed
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