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

Federation: return 'Content-Type' header of 'application/json' by default #35

Merged
merged 1 commit into from
Nov 9, 2020

Conversation

anoadragon453
Copy link
Member

Fixes #32

Causes the federation server to return a Content-Type header with a value of "application/json" by default for all requests. Exceptions to this rule should override the header in their handler function.

I've confirmed that Dendrite still passes all tests even with this change.

@kegsay kegsay merged commit ca9bd78 into master Nov 9, 2020
anoadragon453 added a commit that referenced this pull request Nov 17, 2020
* 'master' of github.com:matrix-org/complement:
  Add request query parameter map to instruction struct (#37)
  Add CA generation and mount it to /ca in containers (#28)
  Federation: return Content-Type header of 'application/json' by default (#35)
  Up the default version check iterations from 50 to 100 (#34)
  Provide an empty json dict to /createRoom instead of no body (#36)
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.

Complement is not using a Content-Type of application/json for federation request responses
2 participants