Skip to content
Snippets Groups Projects
Commit bd2cf9d4 authored by Erik Johnston's avatar Erik Johnston
Browse files

Merge pull request #177 from matrix-org/erikj/content_repo_http_client

SYN-403: Make content repository use its own http client.
parents d4902a7a 2ef2f6d5
No related branches found
No related tags found
No related merge requests found
......@@ -15,6 +15,7 @@
from .thumbnailer import Thumbnailer
from synapse.http.matrixfederationclient import MatrixFederationHttpClient
from synapse.http.server import respond_with_json
from synapse.util.stringutils import random_string
from synapse.api.errors import (
......@@ -52,7 +53,7 @@ class BaseMediaResource(Resource):
def __init__(self, hs, filepaths):
Resource.__init__(self)
self.auth = hs.get_auth()
self.client = hs.get_http_client()
self.client = MatrixFederationHttpClient(hs)
self.clock = hs.get_clock()
self.server_name = hs.hostname
self.store = hs.get_datastore()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment