Skip to content

Use Ruby-style form data key - #6

Closed
samuel-williams-shopify wants to merge 1 commit into
mainfrom
use-ruby-form-data-key
Closed

samuel-williams-shopify wants to merge 1 commit into
mainfrom
use-ruby-form-data-key

Conversation

@samuel-williams-shopify

Copy link
Copy Markdown
Contributor

Description

Send forwarded form entries using the form_data wire key instead of formData. Protocol::WebSocket symbolizes JSON keys on the Ruby side, so this produces the conventional event[:form_data] interface.

Form forwarding has not been released since its recent fix, making this the right point to establish the Ruby-facing name.

Testing

npm test

Signed-off-by: Samuel Williams <samuel.williams@shopify.com>
Assisted-By: devx/7ef83274-928f-499d-b668-48449b1ff60e
@samuel-williams-shopify

Copy link
Copy Markdown
Contributor Author

Closing in favor of retaining the conventional JSON/JavaScript key name .

@samuel-williams-shopify

Copy link
Copy Markdown
Contributor Author

Clarification: closing in favor of retaining the conventional JSON/JavaScript key name formData.

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.

1 participant