Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/k2hr3client/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ def POST(self, r3api: K2hr3Api) -> bool: # pylint: disable=invalid-name # noqa

# 3. Constructs headers using K2hr3Api.headers property.
if self._hdrs: # type: ignore
self._hdrs.update(r3api.headers)
self._hdrs.update(r3api.headers) # type: ignore

# 4. Sends a request.
req = urllib.request.Request(self.url, data=query, # type: ignore
Expand All @@ -304,7 +304,7 @@ def PUT(self, r3api: K2hr3Api) -> bool: # pylint: disable=invalid-name # noqa

# 3. Constructs headers using K2hr3Api.headers property.
if self._hdrs: # type: ignore
self._hdrs.update(r3api.headers)
self._hdrs.update(r3api.headers) # type: ignore

# 5. Sends a request.
req = urllib.request.Request("?".join([self.url, self.urlparams]),
Expand Down Expand Up @@ -335,7 +335,7 @@ def GET(self, r3api: K2hr3Api) -> bool: # pylint: disable=invalid-name # noqa

# 3. Constructs headers using K2hr3Api.headers property.
if self._hdrs: # type: ignore
self._hdrs.update(r3api.headers)
self._hdrs.update(r3api.headers) # type: ignore

# 4. Sends a request.
req = urllib.request.Request(url, headers=self._hdrs, method="GET") # type: ignore # noqa
Expand Down Expand Up @@ -364,7 +364,7 @@ def HEAD(self, r3api: K2hr3Api) -> bool: # pylint: disable=invalid-name # noqa

# 3. Constructs headers using K2hr3Api.headers property.
if self._hdrs: # type: ignore
self._hdrs.update(r3api.headers)
self._hdrs.update(r3api.headers) # type: ignore

# 4. Sends a request.
# NOTE: headers is expected "MutableMapping[str, str]"
Expand Down Expand Up @@ -394,7 +394,7 @@ def DELETE(self, r3api: K2hr3Api) -> bool: # pylint: disable=invalid-name # no

# 3. Constructs headers using K2hr3Api.headers property.
if self._hdrs: # type: ignore
self._hdrs.update(r3api.headers)
self._hdrs.update(r3api.headers) # type: ignore

# 4. Sends a request.
# NOTE: headers is expected "MutableMapping[str, str]"
Expand Down