-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix param's repeat in http callback #4199
base: develop
Are you sure you want to change the base?
fix param's repeat in http callback #4199
Conversation
… cause the repeat of the param
ok, now all checks have passed. The problem is, when calling this function,
if tcUrl contains param, the argrument param should be empty, or it will cause repeat in param |
And the same question also exist with arguement 'stream', |
The function |
Thank you for replying! Next, I would like to confirm with you what you want me to do. My modification has passed the CI, indicating that it has passed all previous tests and has not introduced any new bugs. My modification addresses this issue: when tcUrl contains param, passing a non-empty param does not cause param to be duplicated after calling this function. So, when you ask me to add a test, are you referring to adding a test for the scenario where when tcUrl contains param, passing a non-empty param does not cause param to be duplicated after calling this function? Additionally, there are tests for this utility function in the three test files trunk\src\utest\srs_utest_protocol.cpp, trunk\src\utest\srs_utest_protocol2.cpp, and trunk\src\utest\srs_utest_rtmp.cpp. Should I add this test to one of these files, or should I add it to all of them, or should I create a separate test file? This is my first pull request, and I really hope to get your kindly guidance. Thank you very much. |
This PR try to fix #3930 .
Line 59 in trunk/src/protocol/srs_protocol_utility.cpp, causes the repeat of the param
because in some case, tcUrl has already contained param, but argument param repeat it.
And after this line, it repeats
line 67 to 69 below are able to get the param, if append at line 59, it will repeat
TRANS_BY_GPT4