Skip to content

Conversation

@wu-sheng
Copy link
Member

  • If this pull request closes/resolves/fixes an existing issue, replace the issue number. Closes #.
  • Update the CHANGES log.

@wu-sheng wu-sheng added this to the 10.3.0 milestone May 26, 2025
@wu-sheng wu-sheng added backend OAP backend related. enhancement Enhancement on performance or codes labels May 26, 2025
wankai123
wankai123 previously approved these changes May 26, 2025
public String dumpConfigurations() {
return serverStatusService.dumpBootingConfigurations(config.getKeywords4MaskingSecretsOfConfig());
public String dumpConfigurations(HttpRequest request) {
if ("application/json".equalsIgnoreCase(request.headers().get(HttpHeaderNames.ACCEPT))) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is fragile, some tools/browsers/sdks might send Accept header like this Accept: application/json; charset=utf-8

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated here and similar codes in TTL status APIs

@wu-sheng wu-sheng merged commit 37fbcce into master May 26, 2025
169 of 170 checks passed
@wu-sheng wu-sheng deleted the api-json branch May 26, 2025 03:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend OAP backend related. enhancement Enhancement on performance or codes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants