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

[Packager] Include Content-Type headers with bundle and source maps #2029

Closed
wants to merge 1 commit into from

Conversation

ide
Copy link
Contributor

@ide ide commented Jul 17, 2015

The packager did not send back the Content-Type headers. Adding these.

Test Plan: Run UIExplorer in JSC to ensure the bundle loads. Run it in the Chrome debugger to ensure that source maps load.

@ide
Copy link
Contributor Author

ide commented Jul 17, 2015

@sahrens could you merge this in with the next sync or so? It's a fairly small and self-contained diff.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jul 17, 2015
@sahrens
Copy link
Contributor

sahrens commented Jul 17, 2015

Is this a regression/did something break? Also, looks like you might need to update Server-test.js since it failed on travis?

@ide
Copy link
Contributor Author

ide commented Jul 17, 2015

Nothing broke; I would like the content type headers though. Will look into the tests.

The packager did not send back the Content-Type headers. Adding these.

Test Plan: Run UIExplorer in JSC to ensure the bundle loads. Run it in the Chrome debugger to ensure that source maps load.
@ide
Copy link
Contributor Author

ide commented Jul 17, 2015

Tests are now green -- needed to stub out a function in the test file.

@ide ide closed this in 53222f0 Jul 27, 2015
ptmt pushed a commit to ptmt/react-native that referenced this pull request Jul 28, 2015
Summary:
The packager did not send back the Content-Type headers. Adding these.

Closes facebook#2029
Github Author: James Ide <[email protected]>
@ide ide deleted the packager-content-type branch July 28, 2015 05:23
cpojer pushed a commit to facebook/metro that referenced this pull request Jan 26, 2017
Summary:
The packager did not send back the Content-Type headers. Adding these.

Closes facebook/react-native#2029
Github Author: James Ide <[email protected]>
FalseLobster pushed a commit to FalseLobster/react-native that referenced this pull request Jan 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants