Created
October 1, 2014 21:50
-
-
Save Nate-Wilkins/b9caa54ce3c6bb5cf6fb to your computer and use it in GitHub Desktop.
Get (generated) js file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HttpResponseMessage result = new HttpResponseMessage(HttpStatusCode.OK); | |
result.Content = new ByteArrayContent(File.ReadAllBytes("path")); | |
result.Content.Headers.ContentType = new MediaTypeHeaderValue("application/javascript"); | |
return result; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment