-
Notifications
You must be signed in to change notification settings - Fork 26.5k
Closed
Labels
component/need-triageNeed maintainers to triageNeed maintainers to triagetype/need-triageNeed maintainers to triageNeed maintainers to triage
Description
Pre-check
- I am sure that all the content I provide is in English.
Search before asking
- I had searched in the issues and found no similar issues.
Apache Dubbo Component
Java SDK (apache/dubbo)
Dubbo Version
dubbo 3.3.1
Steps to reproduce this issue
code
@Override
public String locationTest(String url) {
//
// org.apache.dubbo.remoting.http12.message.DefaultHttpResponse httpResponse = (org.apache.dubbo.remoting.http12.message.DefaultHttpResponse)RpcContext.getServiceContext().getResponse();
//
// httpResponse.setBody("locationTest");
//
// httpResponse.sendRedirect(url);
//
// return "locationTest";
HttpResultPayloadException httpResultPayloadException = new HttpResultPayloadException(HttpResponseStatus.FOUND.code(), "");
throw new org.apache.dubbo.remoting.http12.exception.HttpResultPayloadException(httpResultPayloadException);
}
error
http://localhost:8080/http/response/test?url=https://baidu.com
What you expected to happen
sendRedirect to custom url
Anything else
No response
Are you willing to submit a pull request to fix on your own?
- Yes I am willing to submit a pull request on my own!
Code of Conduct
- I agree to follow this project's Code of Conduct
Metadata
Metadata
Assignees
Labels
component/need-triageNeed maintainers to triageNeed maintainers to triagetype/need-triageNeed maintainers to triageNeed maintainers to triage
Type
Projects
Status
Todo