After upgrade to .NET 7, FsHttp seems to struggle with parsing headers:
Unhandled exception. System.AggregateException: One or more errors occurred. (The format of value '' is invalid.)
---> System.FormatException: The format of value '' is invalid.
at System.Net.Http.Headers.HttpHeaderParser.ParseValue(String value, Object storeValue, Int32& index)
at System.Net.Http.Headers.HttpHeaders.ParseAndAddValue(HeaderDescriptor descriptor, HeaderStoreItemInfo info, String value)
at System.Net.Http.Headers.HttpHeaders.Add(HeaderDescriptor descriptor, String value)
Example for reproduction:
open FsHttp
let req = http {
GET "http://google.com"
}
let res = Request.send req
printfn $"res = %A{res}"
After upgrade to .NET 7, FsHttp seems to struggle with parsing headers:
Example for reproduction: