Skip to content

[Finishes #108285908] Revert revert proxy#5557

Merged
Bjvanminnen merged 2 commits into
stagingfrom
revert-revert-proxy
Nov 20, 2015
Merged

[Finishes #108285908] Revert revert proxy#5557
Bjvanminnen merged 2 commits into
stagingfrom
revert-revert-proxy

Conversation

@Bjvanminnen

Copy link
Copy Markdown
Contributor

Initial attempt broke a couple of our levels, because they use a background images served from images.code.org, and did not include a content_type.

Fix is that in cases where we aren't explicitly given a content_type we try to derive it from the filename. This is obviously imperfect, since I can now proxy assets of arbitrary types as long as (a) the server doesn't return a content_type and (b) the filename claims to be one of our allowable types. I'm not sure whether that is something that we care about, as it's not really so different than a server mis-claiming the wrong content type.

@philbogle

Copy link
Copy Markdown
Contributor

LGTM

Bjvanminnen added a commit that referenced this pull request Nov 20, 2015
[Finishes #108285908] Revert revert proxy
@Bjvanminnen Bjvanminnen merged commit 1a5cbc7 into staging Nov 20, 2015
deploy-code-org added a commit that referenced this pull request Nov 20, 2015
1a5cbc7 Merge pull request #5557 from code-dot-org/revert-revert-proxy (Bjvanminnen)
fbcc9a0 Merge pull request #4946 from code-dot-org/skip-npm-install-if-already-installed (Brad Buchanan)
3de1b51 Comment nvm workaround [ci skip] (Brad Buchanan)
703c04c Merge pull request #5462 from code-dot-org/generalize-mobile-audio-unlock (Brad Buchanan)
2d5cd5e Automatically built. (Continuous Integration)
d367880 Merge pull request #5552 from code-dot-org/delete_first_screen (Mehal Shah)
@Bjvanminnen Bjvanminnen deleted the revert-revert-proxy branch November 23, 2015 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants