diff options
author | Erik Johnston <erik@matrix.org> | 2016-09-09 18:06:01 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2016-09-09 18:06:01 +0100 |
commit | 3265def8c7b4a6e49bc9ee920aef45bb22beaf74 (patch) | |
tree | 0f069dbf73fc1abc5955922eb46b50598f5d9b6f /synapse/rest/client/v1/transactions.py | |
parent | Fix incorrect attribute name (diff) | |
parent | Merge pull request #1096 from matrix-org/markjh/get_access_token (diff) | |
download | synapse-3265def8c7b4a6e49bc9ee920aef45bb22beaf74.tar.xz |
Merge branch 'develop' of github.com:matrix-org/synapse into erikj/batch_edus
Diffstat (limited to 'synapse/rest/client/v1/transactions.py')
-rw-r--r-- | synapse/rest/client/v1/transactions.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/rest/client/v1/transactions.py b/synapse/rest/client/v1/transactions.py index bdccf464a5..2f2c9d0881 100644 --- a/synapse/rest/client/v1/transactions.py +++ b/synapse/rest/client/v1/transactions.py @@ -17,6 +17,8 @@ to ensure idempotency when performing PUTs using the REST API.""" import logging +from synapse.api.auth import get_access_token_from_request + logger = logging.getLogger(__name__) @@ -90,6 +92,6 @@ class HttpTransactionStore(object): return response def _get_key(self, request): - token = request.args["access_token"][0] + token = get_access_token_from_request(request) path_without_txn_id = request.path.rsplit("/", 1)[0] return path_without_txn_id + "/" + token |