Http 泽西岛客户没有';t在301响应时正确重定向(补丁后)

Http 泽西岛客户没有';t在301响应时正确重定向(补丁后),http,jersey,jax-rs,jersey-client,Http,Jersey,Jax Rs,Jersey Client,我使用Jersey客户端向API发出更改资源ID的请求,使用补丁方法: Client client = ClientBuilder.newClient() .property(HttpUrlConnectorProvider.SET_METHOD_WORKAROUND, true); // To allow PATCH ... // Setting uri, path, accessToken and entity used below ... WebTarget target = cl

我使用Jersey客户端向API发出更改资源ID的请求,使用补丁方法:

Client client = ClientBuilder.newClient()
    .property(HttpUrlConnectorProvider.SET_METHOD_WORKAROUND, true); // To allow PATCH
...
// Setting uri, path, accessToken and entity used below
...
WebTarget target = client.target(uri).path(path);
Response response = target.request(MediaType.APPLICATION_JSON)
    .header(HttpHeaders.AUTHORIZATION, BEARER + accessToken)
    .method("PATCH", entity);
我在Fiddler中看到ID已成功更改:返回带有位置标头的“301永久移动”响应,位置标头包含带有新ID的URL。
然后在Fiddler中,我再次看到Jersey客户端在第一个请求之后从Location头调用URL,但再次使用PATCH方法…
由于响应代码是301,它不应该使用GET请求位置头中的URL吗

谢谢