summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2023-04-27 14:26:24 +0100
committerGitHub <noreply@github.com>2023-04-27 14:26:24 +0100
commit2c5307d42e0d4cc1a81210c76a63271d66f2888b (patch)
tree4ce5669e18863bc630f09d0209a6da1ba6904ec3
parent65278fa76c07674b63e170c9ec1f85722aced16f (diff)
parentb8920d636aec513ef2313a22f625a557365787bf (diff)
downloadvyos-1x-2c5307d42e0d4cc1a81210c76a63271d66f2888b.tar.gz
vyos-1x-2c5307d42e0d4cc1a81210c76a63271d66f2888b.zip
Merge pull request #1969 from jestabro/eq-multipart-parser
http-api: T5175: check value of attribute for FastAPI>=0.91.0
-rwxr-xr-xsrc/services/vyos-http-api-server2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/services/vyos-http-api-server b/src/services/vyos-http-api-server
index ed8cf6a44..ece3aa9b2 100755
--- a/src/services/vyos-http-api-server
+++ b/src/services/vyos-http-api-server
@@ -269,7 +269,7 @@ class MultipartRequest(Request):
return self._headers
async def form(self) -> FormData:
- if not hasattr(self, "_form"):
+ if self._form is None:
assert (
parse_options_header is not None
), "The `python-multipart` library must be installed to use form parsing."