The return type for the is method on Request is currently string option, which handles the presence of a body, but when the content-type header is missing, the return type will be a boolean: If the request has no body, returns null. Returns false otherwise.. So it seems the expected return type would be U2<option<string>, bool>.
The return type for the
is
method onRequest
is currentlystring option
, which handles the presence of a body, but when the content-type header is missing, the return type will be a boolean:If the request has no body, returns null. Returns false otherwise.
. So it seems the expected return type would beU2<option<string>, bool>
.https://github.com/glutinum-org/Glutinum/blob/52b2f2487aa2195fb04751df72f607aa6980f4b7/glues/ExpressServeStaticCore/src/Glutinum.ExpressServeStaticCore.fs#L1435