mirror of
https://github.com/unmojang/authlib-injector.git
synced 2025-09-30 23:01:29 -04:00
nanohttpd: refactor: remove Response.newFixedLength(String)
This commit is contained in:
parent
514f2829e2
commit
61b787aa4d
@ -205,12 +205,6 @@ public abstract class NanoHTTPD {
|
|||||||
* Common MIME type for dynamic content: plain text
|
* Common MIME type for dynamic content: plain text
|
||||||
*/
|
*/
|
||||||
public static final String MIME_PLAINTEXT = "text/plain";
|
public static final String MIME_PLAINTEXT = "text/plain";
|
||||||
|
|
||||||
/**
|
|
||||||
* Common MIME type for dynamic content: html
|
|
||||||
*/
|
|
||||||
public static final String MIME_HTML = "text/html";
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* logger to log to.
|
* logger to log to.
|
||||||
*/
|
*/
|
||||||
|
@ -278,13 +278,6 @@ public class Response implements Closeable {
|
|||||||
this.status = status;
|
this.status = status;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Create a text response with known length.
|
|
||||||
*/
|
|
||||||
public static Response newFixedLength(String msg) {
|
|
||||||
return newFixedLength(Status.OK, NanoHTTPD.MIME_HTML, msg);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a text response with known length.
|
* Create a text response with known length.
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user