Skip to content
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 empty query paramter value in editor will generate url params without equal sign issue #7974

Merged
merged 1 commit into from
Sep 19, 2024

Conversation

cwangsmv
Copy link
Contributor

@cwangsmv cwangsmv commented Sep 19, 2024

Background
If user leaves an empty value for query paramter in editor like below:
Screenshot 2024-09-19 at 16 20 55
The generated url params will be foo=bar&foo1&foo2=bar2.
But in URL PREVIEW and Generate Code it will display as foo=bar&foo1=&foo2=bar2.
The fix will make empty value url params behaves same in generated url.

Closes #7965

@cwangsmv cwangsmv force-pushed the fix/empty-query-param-behavior-in-editor branch from fa6c606 to 59dd813 Compare September 19, 2024 08:55
@cwangsmv cwangsmv enabled auto-merge (squash) September 19, 2024 08:55
@cwangsmv cwangsmv merged commit d87398f into develop Sep 19, 2024
8 checks passed
@cwangsmv cwangsmv deleted the fix/empty-query-param-behavior-in-editor branch September 19, 2024 09:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

当我给接口新增一个参数密钥时,但参数值为空时
2 participants