Skip to content

Conversation

@TheWolfNL
Copy link
Contributor

Before:

  • If you POST a file it would always use the content type derived from the file, even when a content type is supplied.

After:

  • If no content type is given, the default is ensured in src/url.c (lines 357 and 637)
  • If no content type is given, but a file is POSTed, the file's content type will be used
  • If a content type is given, and a file is POSTed, the given content type will be used

This solves:
#105
and would allow people posting a file but the content type is guessed incorrectly to easily workaround the problem by forcing the desired content type.

@TheWolfNL
Copy link
Contributor Author

@JoeDog It would be great if you could merge this one as well.

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