Use NsIsSuccessHttpCode() for status code checking
This commit is contained in:
@@ -20,7 +20,7 @@ bool function pulseRequestData(string givenURL, table parameterTable, string tab
|
|||||||
table<string, array<string> > requestTable
|
table<string, array<string> > requestTable
|
||||||
void functionref (HttpRequestResponse) onSuccess = void function(HttpRequestResponse response) : (givenURL, parameterTable, requestTable, tablepath)
|
void functionref (HttpRequestResponse) onSuccess = void function(HttpRequestResponse response) : (givenURL, parameterTable, requestTable, tablepath)
|
||||||
{
|
{
|
||||||
if(response.statusCode == 200 || response.statusCode == 201){
|
if (NSIsSuccessHttpCode(response.statusCode)){
|
||||||
table DecodedJSON = DecodeJSON(response.body)
|
table DecodedJSON = DecodeJSON(response.body)
|
||||||
if ("map" in parameterTable)
|
if ("map" in parameterTable)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user