Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Rails 500 Internal Server Error
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)
}
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
You can’t perform that action at this time.