From 9ea89ffefea114973513c8269a0f3c7c8e46c50a Mon Sep 17 00:00:00 2001 From: Matt Layman Date: Sun, 30 Aug 2015 21:37:47 -0400 Subject: [PATCH 1/2] Fix typo in method name of plugin manager. --- httpie/client.py | 2 +- httpie/plugins/manager.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/httpie/client.py b/httpie/client.py index 5f24a049..190737d2 100644 --- a/httpie/client.py +++ b/httpie/client.py @@ -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()) diff --git a/httpie/plugins/manager.py b/httpie/plugins/manager.py index 2c4092d5..239d32ae 100644 --- a/httpie/plugins/manager.py +++ b/httpie/plugins/manager.py @@ -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)] From d60a04da2ddc51ad169e590c45808d8e56accd81 Mon Sep 17 00:00:00 2001 From: Matt Layman Date: Sun, 30 Aug 2015 21:41:14 -0400 Subject: [PATCH 2/2] Add Matt Layman to AUTHORS. --- AUTHORS.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/AUTHORS.rst b/AUTHORS.rst index 0dceb04c..1d7437d6 100644 --- a/AUTHORS.rst +++ b/AUTHORS.rst @@ -32,3 +32,4 @@ Patches and ideas * `Nathan LaFreniere `_ * `Matthias Lehmann `_ * `Dennis Brakhane `_ +* `Matt Layman `_