Bug 866. SQA: Webagent generates 400 "bad request" after "200 ok"
Review Request #271 — Created June 1, 2024 and submitted — Latest diff uploaded
| Information | |
|---|---|
| tanya | |
| APV10 | |
| rel_apv_10_7, rel_apv_10_7_0_x900_support, rel_apv_10_7_0 | |
| 866 | |
| Reviewers | |
| kdutta, prajesh, timlai | |
Webagent inserts \r\n at the end of request, but it forgets to rollback to 2 bytes back for final \r\n in the _adjust_parser_frames(). for header parsing webagent uses http proxy parser fuction that but for adjusting the frames instead of using proxy parser fuction that accounts for those 2 bytes it uses it's own function that does not. I added code to subrtact the lengh of final \r\n from the req len and that fixes the problem
Tested and looked at the tcp dump, before the fix we see \r\n\r\n\r\n at the end of requests, but after the fix we see \r\n\r\n, which is correct http ending for request.
