Skip to content
This repository was archived by the owner on Mar 18, 2019. It is now read-only.

Commit 11ad5d7

Browse files
committed
Merge pull request #64 from j4mie/patch-1
Correct spelling mistake
2 parents eb0cd25 + cb12a00 commit 11ad5d7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

coreapi/transports/http.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ def _get_http_method(action):
1818
return action.upper()
1919

2020

21-
def _seperate_params(method, fields, params=None):
21+
def _separate_params(method, fields, params=None):
2222
"""
23-
Seperate the params into their location types: path, query, or form.
23+
Separate the params into their location types: path, query, or form.
2424
"""
2525
if params is None:
2626
return ({}, {}, {})
@@ -203,7 +203,7 @@ def headers(self):
203203

204204
def transition(self, link, params=None, decoders=None, link_ancestors=None):
205205
method = _get_http_method(link.action)
206-
path_params, query_params, form_params = _seperate_params(method, link.fields, params)
206+
path_params, query_params, form_params = _separate_params(method, link.fields, params)
207207
url = _expand_path_params(link.url, path_params)
208208
headers = _get_headers(url, decoders, self.credentials, self.headers)
209209
response = _make_http_request(url, method, headers, query_params, form_params)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy