mirror of
https://github.com/httpie/cli.git
synced 2024-11-08 17:04:50 +01:00
Merge pull request #377 from mblayman/fix-trasnsport
Fix trasnsport typo in plugin manager.
This commit is contained in:
commit
307517e7ef
@ -32,3 +32,4 @@ Patches and ideas
|
||||
* `Nathan LaFreniere <https://github.com/nlf>`_
|
||||
* `Matthias Lehmann <https://github.com/matleh>`_
|
||||
* `Dennis Brakhane <https://github.com/brakhane>`_
|
||||
* `Matt Layman <https://github.com/mblayman>`_
|
||||
|
@ -22,7 +22,7 @@ DEFAULT_UA = 'HTTPie/%s' % __version__
|
||||
|
||||
def get_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()
|
||||
requests_session.mount(prefix=transport_plugin.prefix,
|
||||
adapter=transport_plugin.get_adapter())
|
||||
|
@ -60,6 +60,6 @@ class PluginManager(object):
|
||||
if issubclass(plugin, ConverterPlugin)]
|
||||
|
||||
# Adapters
|
||||
def get_trasnsport_plugins(self):
|
||||
def get_transport_plugins(self):
|
||||
return [plugin for plugin in self
|
||||
if issubclass(plugin, TransportPlugin)]
|
||||
|
Loading…
Reference in New Issue
Block a user