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

empty input text field values in the browser reach Zetta server as the string 'undefined' #3

Closed
landlessness opened this issue Oct 6, 2014 · 3 comments
Labels

Comments

@landlessness
Copy link
Contributor

In the Zetta browser, I have a text input field named words for an action called say. I leave the text input field blank and hit the field's button. The blank value gets POSTed as the string "undefined". It is difficult to build my Zetta device driver with this approach.

It would be better if a blank field reached the Zetta device driver as an empty value "".

The Zetta browser is submitting the equivalent of this curl command:

curl --data "action=say&words=undefined" http://0.0.0.0:1337/servers/{id}/devices/{id}

This would be better:

curl --data "action=say&words=" http://0.0.0.0:1337/servers/{id}/devices/{id}
@13protons
Copy link
Contributor

@AdamMagaluk was this fixed?

@landlessness
Copy link
Contributor Author

as a point of reference, i haven't experienced this bug in a while.

@AdamMagaluk
Copy link
Contributor

Yes it should be fixed when that PR was merged and published. Closing.

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

No branches or pull requests

3 participants