Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minimal v2 protocol fixes #387

Merged
merged 1 commit into from Mar 18, 2016
Merged

Minimal v2 protocol fixes #387

merged 1 commit into from Mar 18, 2016

Conversation

johnataylor
Copy link
Member

@yishaigalatzer
This pull request represents the minimal working changes for Klondike.

  1. we send Accept headers correctly and 2) for search we send short name for target framework

@csharpfritz
We are also expecting users to have to use Klondike with host/api/odata and not host/api because for 3.4 because we are not fixing the fact that we don't correctly processes odata base address. If the initial request is redirected our client won't work because the base address specified in the root OData ServiceDocument will not be picked up.

request.Headers.Accept.Add(a);
}

Func<HttpRequestMessage> requestFactory = () => request;
Copy link
Member

Choose a reason for hiding this comment

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

This should create a completely new request, see: #378

@@ -126,6 +127,7 @@ private Task<IEnumerable<PackageInfo>> EnsurePackagesAsync(string id, Cancellati
// So we decide to leave current logic and observe.
using (var data = await _httpSource.GetAsync(
uri,
new[] { new MediaTypeWithQualityHeaderValue("application/atom+xml"), new MediaTypeWithQualityHeaderValue("application/xml") },
Copy link
Member

Choose a reason for hiding this comment

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

nit: this looks like it should be a shared static so since it doesn't change but it used all over and recreated many times

@emgarten
Copy link
Member

🚀

@johnataylor johnataylor merged commit 7f8b4c1 into dev Mar 18, 2016
@alpaix alpaix deleted the minimal-v2-protocol-fixes branch July 20, 2016 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants