Skip to content

When sending a file using POST with an unsupported encoding, smews answers nothing #24

@hauspie

Description

@hauspie

Targets

Issue appears probably on all targets, but was seen at least on linux and mbed_ethernet

Step to reproduce

  1. Checkout a fresh smews (bug spotted on develop branch, commit 79a242b)
  2. build it using the post_test application
  3. Run smews and access the http://ip/post_test/index.html url
  4. Using the form Post Request With Data Content Type MultiPart send a file that is not a .txt file (any file whose mime type is application/octet-stream is ok)
  5. Submit the file

Expected results

As the mime type is not enabled in the tools/mimeListPost, smews should not support it and returns a 404 or 505 (not quite sure of what the real good behavior must be)

Actual results

Smews outputs nothing. As a results, the browser stalls and eventually times out.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions