diff options
author | Daniil Baturin <daniil@vyos.io> | 2023-04-27 14:26:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-27 14:26:24 +0100 |
commit | 2c5307d42e0d4cc1a81210c76a63271d66f2888b (patch) | |
tree | 4ce5669e18863bc630f09d0209a6da1ba6904ec3 /src/services | |
parent | 65278fa76c07674b63e170c9ec1f85722aced16f (diff) | |
parent | b8920d636aec513ef2313a22f625a557365787bf (diff) | |
download | vyos-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
Diffstat (limited to 'src/services')
-rwxr-xr-x | src/services/vyos-http-api-server | 2 |
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." |