Skip to content
This repository was archived by the owner on Jan 14, 2018. It is now read-only.

response headers missing? #464

@or-dvir

Description

@or-dvir

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):

4444444444444

am i doing something wrong? any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions