You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
HttpResponseCreator._parseUrlEventContent function returns {} when ParseJSON is invalid. It may lead to caching invalid responses. At this point, the app knows that the response body is a non-empty string and JSON format is expected. Thus failed JSON parsing suggests that body is corrupted, and caching it may lead to unexpected behavior.
prototype._parseUrlEventContent=function (urlEventasObject) asObjectif (NOTm._isJsonResponse(urlEvent)) thenreturn {}
content=urlEvent.getString()
if (content="") thenreturn {}
data=ParseJSON(content)
if (data=Invalid) thenreturn {}
returndataend function
The text was updated successfully, but these errors were encountered:
This is a Feature Proposal
Description
HttpResponseCreator._parseUrlEventContent
function returns{}
whenParseJSON
is invalid. It may lead to caching invalid responses. At this point, the app knows that the response body is a non-empty string and JSON format is expected. Thus failed JSON parsing suggests that body is corrupted, and caching it may lead to unexpected behavior.The text was updated successfully, but these errors were encountered: