This repository was archived by the owner on Jan 14, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 540
response headers missing? #464
Copy link
Copy link
Open
Description
Hi.
i am using this library in conjunction with spring (using the class SpringAndroidSpiceRequest).
here is my load data from network:
@Override
public T loadDataFromNetwork() throws Exception
{
HttpHeaders headers = new HttpHeaders();
headers.add("Accept", "application/vnd.github.v3+json");
headers.add("Authorization", User.getCurrentUserAuthenticationValue());
if(mHttpMethod == HttpMethod.PUT)
{
headers.add("Content-Length", "0");
}
ResponseEntity<T> entity = getRestTemplate().exchange(mUrl, mHttpMethod, new HttpEntity<>(headers), mResponseType);
mResponseHeaders = entity.getHeaders();
return entity.getBody();
}
the problem is that for some reason mResponseHeaders is missing some headers, in particular one that is called "Link"
the header exists if i send the same request via web browser (using the DHC plugin):
am i doing something wrong? any ideas?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels