Skip to content

Commit

Permalink
Fixes for TooTallNate#1017
Browse files Browse the repository at this point in the history
  • Loading branch information
Pawan Gupta authored and 宰祥顺 committed May 23, 2020
1 parent 74eaa55 commit b56ad28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/java_websocket/WebSocketImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ private ByteBuffer generateHttpResponseDueToError( int errorCode ) {
default:
errorCodeDescription = "500 Internal Server Error";
}
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>" ) );
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>" ) );
}

public synchronized void close( int code, String message, boolean remote ) {
Expand Down

0 comments on commit b56ad28

Please sign in to comment.