Created
September 13, 2016 19:07
-
-
Save inconshreveable/6a055e475fa124aef777151c3b7fc6c4 to your computer and use it in GitHub Desktop.
Rails 500 Internal Server Error
This file contains hidden or 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
package main | |
import ( | |
"io" | |
"net" | |
"os" | |
"time" | |
) | |
func main() { | |
c, _ := net.Dial("tcp", "localhost:3000") | |
time.Sleep(time.Second) | |
c.(*net.TCPConn).CloseWrite() | |
io.Copy(os.Stdout, c) | |
} |
This file contains hidden or 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
HTTP/1.1 500 Internal Server Error\r\n\r\n |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment