AT should not return CON on status != 200 #54

Open
opened 2024-09-14 16:30:28 +02:00 by lash · 1 comment
Owner

Example:

$ curl -X POST http://localhost:7123 -H "Content-Type: application/x-www-form-urlencoded" --data "number=%2b3511234&text="
curl: (18) end of response with 17 bytes missing
CON
Example: ``` $ curl -X POST http://localhost:7123 -H "Content-Type: application/x-www-form-urlencoded" --data "number=%2b3511234&text=" curl: (18) end of response with 17 bytes missing CON ```
lash added the
Kind/Bug
easy
Runner
AT
labels 2024-09-14 16:30:44 +02:00
Alfred-mk was assigned by lash 2024-09-14 16:30:49 +02:00
Member

This was occurring since an error in the GetSessionId was not being returned, and the code was being executed till the end.

I have added a return statement to resolve this.

Also set the default code case to 500, and only return a status of 200 if an error does not exist

This was occurring since an error in the GetSessionId was not being returned, and the code was being executed till the end. I have added a return statement to resolve this. Also set the default code case to 500, and only return a status of 200 if an error does not exist
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: urdt/ussd#54
No description provided.