Skip to content

mirage: Add basic route handler for builds.json API from docs.rs #2125

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

Merged
merged 1 commit into from
Jan 14, 2020

Conversation

Turbo87
Copy link
Member

@Turbo87 Turbo87 commented Jan 14, 2020

ajax(`https://docs.rs/crate/${crateName}/${crateVersion}/builds.json`, { mode: 'cors' }).then(r => {
is requesting data from docs.rs that we currently don't catch in our mock server. This MR adds a basic request handler for it that returns an empty response.

r? @locks

@locks
Copy link
Contributor

locks commented Jan 14, 2020

@bors r+

@bors
Copy link
Contributor

bors commented Jan 14, 2020

📌 Commit 54ffece has been approved by locks

bors added a commit that referenced this pull request Jan 14, 2020
mirage: Add basic route handler for `builds.json` API from docs.rs

https://github.com/rust-lang/crates.io/blob/5cc7fb4d17c7400ce4a8db6218d6c773326b8de5/app/routes/crate/version.js#L31 is requesting data from docs.rs that we currently don't catch in our mock server. This MR adds a basic request handler for it that returns an empty response.

r? @locks
@bors
Copy link
Contributor

bors commented Jan 14, 2020

⌛ Testing commit 54ffece with merge 88c9b93...

@bors
Copy link
Contributor

bors commented Jan 14, 2020

☀️ Test successful - checks-travis
Approved by: locks
Pushing 88c9b93 to master...

@bors bors merged commit 54ffece into rust-lang:master Jan 14, 2020
@Turbo87 Turbo87 deleted the docs-rs branch March 30, 2020 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants