Created
July 9, 2013 08:00
-
-
Save fl00r/5955527 to your computer and use it in GitHub Desktop.
Simple rack app
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
run proc{ | |
res = "Hello World" | |
[ | |
200, | |
{ | |
"Connection" => "close", | |
"Access-Control-Allow-Origin" => [ "http://domain1.com", "http://domain2.com" ] * "\n", | |
"Content-Length" => res.bytesize.to_s | |
}, | |
[res] | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment