Skip to content

Commit 9da67ff

Browse files
committed
Requests request factory refactor
1 parent 24ae784 commit 9da67ff

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

openapi_core/contrib/requests/requests.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,6 @@ def create(cls, request):
3838
# extract the URL without query parameters
3939
url = o._replace(query=None).geturl()
4040

41-
# gets deduced by path finder against spec
42-
path = {}
43-
4441
# Order matters because all python requests issued from a session
4542
# include Accept */* which does not necessarily match the content type
4643
mimetype = request.headers.get('Content-Type') or \
@@ -54,11 +51,11 @@ def create(cls, request):
5451
# TODO: figure out if request._body_position is relevant
5552
body = request.body
5653

54+
# Path gets deduced by path finder against spec
5755
parameters = RequestParameters(
5856
query=ImmutableMultiDict(params),
5957
header=header,
6058
cookie=cookie,
61-
path=path,
6259
)
6360
return OpenAPIRequest(
6461
full_url_pattern=url,

0 commit comments

Comments
 (0)