mirror of
https://github.com/httpie/cli.git
synced 2025-01-08 14:49:41 +01:00
Fix typo in method name of plugin manager.
This commit is contained in:
parent
2b51cb6687
commit
9ea89ffefe
@ -22,7 +22,7 @@ DEFAULT_UA = 'HTTPie/%s' % __version__
|
|||||||
|
|
||||||
def get_requests_session():
|
def get_requests_session():
|
||||||
requests_session = requests.Session()
|
requests_session = requests.Session()
|
||||||
for cls in plugin_manager.get_trasnsport_plugins():
|
for cls in plugin_manager.get_transport_plugins():
|
||||||
transport_plugin = cls()
|
transport_plugin = cls()
|
||||||
requests_session.mount(prefix=transport_plugin.prefix,
|
requests_session.mount(prefix=transport_plugin.prefix,
|
||||||
adapter=transport_plugin.get_adapter())
|
adapter=transport_plugin.get_adapter())
|
||||||
|
@ -60,6 +60,6 @@ class PluginManager(object):
|
|||||||
if issubclass(plugin, ConverterPlugin)]
|
if issubclass(plugin, ConverterPlugin)]
|
||||||
|
|
||||||
# Adapters
|
# Adapters
|
||||||
def get_trasnsport_plugins(self):
|
def get_transport_plugins(self):
|
||||||
return [plugin for plugin in self
|
return [plugin for plugin in self
|
||||||
if issubclass(plugin, TransportPlugin)]
|
if issubclass(plugin, TransportPlugin)]
|
||||||
|
Loading…
Reference in New Issue
Block a user