Age | Commit message (Collapse) | Author |
|
|
|
Signed-off-by: Alex Chen <minecnly@gmail.com>
|
|
|
|
Fixes #660.
Signed-off-by: Alex Chen minecnly@gmail.com
|
|
Manipulate filters as gomatrix.Filter structures, instead of their []byte JSON representation.
This lays ground work for using filters in dendrite for /sync requests.
|
|
Fixes https://github.com/matrix-org/dendrite/issues/401
Currently when passing a `device_id` parameter to `/login`, which is [supposed](https://matrix.org/docs/spec/client_server/unstable#post-matrix-client-r0-login) to return a device with that ID set, it instead just generates a random `device_id` and hands that back to you.
The code was already there to do this correctly, it looks like it had just been broken during some change. Hopefully sytest will prevent this from becoming broken again.
|
|
Closes #523
There were a lot of unnecessary checks for HTTP methods of requests. gorilla/mux makes sure that these methods will only be called if certain HTTP methods are used, thus there's no reason to have these extra checks.
|
|
|
|
|
|
Fixes #661.
|
|
Continuation of #684 but merged-forward.
Also did a little code cleanup and added a new, passing test to the testfile.
|
|
Signed-off-by: Alex Chen <minecnly@gmail.com>
|
|
fixes #421
|
|
We were escaping the URL before performing any pattern matching on it.
This meant that if you sent data that URLdecoded to a "/", it would count as
a "/" in the URL, potentially causing a 404. This was causing some flaky tests
with some randomly-generated query parameters.
Now, we keep URLs encoded while doing the pattern matching, and only afterwards
do we URL decode each query parameter individually before passing them to their
respective handler functions.
github.com/gorilla/mux was also updated to v1.7.3 to fix a bug with URL encoding and subrouters.
|
|
Fixes #697
Switched to golangci-lint, fixes issues with buildkite and does some linting fixes to appease the new linters.
|
|
|