File tree Expand file tree Collapse file tree
src/main/java/org/java_websocket Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -427,7 +427,7 @@ private ByteBuffer generateHttpResponseDueToError( int errorCode ) {
427427 default :
428428 errorCodeDescription = "500 Internal Server Error" ;
429429 }
430- return ByteBuffer .wrap ( Charsetfunctions .asciiBytes ( "HTTP/1.1 " + errorCodeDescription + "\r \n Content-Type: text/html\n Server: TooTallNate Java-WebSocket\r \n Content-Length: " + ( 48 + errorCodeDescription .length () ) + "\r \n \r \n <html><head></head><body><h1>" + errorCodeDescription + "</h1></body></html>" ) );
430+ return ByteBuffer .wrap ( Charsetfunctions .asciiBytes ( "HTTP/1.1 " + errorCodeDescription + "\r \n Content-Type: text/html\r \ n Server: TooTallNate Java-WebSocket\r \n Content-Length: " + ( 48 + errorCodeDescription .length () ) + "\r \n \r \n <html><head></head><body><h1>" + errorCodeDescription + "</h1></body></html>" ) );
431431 }
432432
433433 public synchronized void close ( int code , String message , boolean remote ) {
You can’t perform that action at this time.
0 commit comments