Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[fix] apigenlib: Response with no content type treated as empty.

  • Loading branch information...
commit bf0c202bcf3aee256a2acf99facd2d283b2252a4 1 parent 5d57564
@nrs135 nrs135 authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/stdlib/apis/apigenlib/apigenlib.opa
View
5 lib/stdlib/apis/apigenlib/apigenlib.opa
@@ -570,6 +570,11 @@ module ApigenLib {
}
case {none}: {failure:{error:"No WBXml context"}};
}
+ case ["unknown/unknown"|_]:
+ if (String.length(res.content) == 0)
+ {success:{none}}
+ else
+ {failure:{bad_content:{unknown:(content_type,res.content)}}};
default:
//jlog("content_type:\"{content_type}\"")
{failure:{bad_content:{unknown:(content_type,res.content)}}};
Please sign in to comment.
Something went wrong with that request. Please try again.