Skip to content
This repository has been archived by the owner on Oct 21, 2022. It is now read-only.

Array responses are not modified unless keepCookie is used

Compare
Choose a tag to compare
@taylordowns2000 taylordowns2000 released this 06 Feb 07:01

keepCookie guarantees an object as state.data for nextState... it normally spreads the response data and adds a __headers and __cookie key, but if the response data is an array it will be placed into the body key for state.data.

body is the place that all non-standard JSON get's put when composing next state.

state.data may be an object, and array, or a string (because it's using some non-supported language, usually) tucked into body: "<html>...