Skip to content

Commit b56ad28

Browse files
Pawan Gupta宰祥顺
authored andcommitted
Fixes for TooTallNate#1017
1 parent 74eaa55 commit b56ad28

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/org/java_websocket/WebSocketImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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\nContent-Type: text/html\nServer: TooTallNate Java-WebSocket\r\nContent-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\nContent-Type: text/html\r\nServer: TooTallNate Java-WebSocket\r\nContent-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 ) {

0 commit comments

Comments
 (0)