fortran-lang / http-client

http-client offers a user-friendly, high-level API to make HTTP requests in Fortran.
https://http-client.fortran-lang.org/
MIT License
60 stars 8 forks source link

Fix bugs discovered by Intel OneAPI #43

Closed milancurcic closed 1 year ago

milancurcic commented 1 year ago

http-client now builds and passes tests with Intel OneAPI (both ifx (IFX) 2023.1.0 20230320 and ifort (IFORT) 2021.9.0 20230302) with this PR.

Before this PR, a few tests were failing in cases where request % data or request % file were referenced in set_body while not allocated. This PR fixes it by checking their allocation status rather then their length.

rajkumardongre commented 1 year ago

Thanks @milancurcic, it's looking good to me