Changeset b6bd497 for apps/admin


Ignore:
Timestamp:
Dec 20, 2015 2:11:42 AM (5 years ago)
Author:
z3r0fox <z3r0fox@…>
Branches:
master
Children:
074c5aa1
Parents:
2246e21
Message:

Replaces instances of getBytes() in apps classes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/admin/java/src/net/i2p/router/admin/AdminRunner.java

    r2246e21 rb6bd497  
    1212
    1313import net.i2p.data.Hash;
     14import net.i2p.data.DataHelper
    1415import net.i2p.router.Router;
    1516import net.i2p.router.RouterContext;
     
    4849        } else if ( (command.indexOf("routerStats.html") >= 0) || (command.indexOf("oldstats.jsp") >= 0) ) {
    4950            try {
    50                 out.write("HTTP/1.1 200 OK\nConnection: close\nCache-control: no-cache\nContent-type: text/html\n\n".getBytes());
     51                out.write(DataHelper.getASCII("HTTP/1.1 200 OK\nConnection: close\nCache-control: no-cache\nContent-type: text/html\n\n"));
    5152                _generator.generateStatsPage(new OutputStreamWriter(out));
    5253                out.close();
     
    6263        } else if (true || command.indexOf("routerConsole.html") > 0) {
    6364            try {
    64                 out.write("HTTP/1.1 200 OK\nConnection: close\nCache-control: no-cache\nContent-type: text/html\n\n".getBytes());
     65                out.write(DataHelper.getASCII("HTTP/1.1 200 OK\nConnection: close\nCache-control: no-cache\nContent-type: text/html\n\n"));
    6566                _context.router().renderStatusHTML(new OutputStreamWriter(out));
    6667                out.close();
     
    8182        reply.append(content);
    8283        try {
    83             out.write(reply.toString().getBytes());
     84            out.write(DataHelper.getASCII(reply.toString()));
    8485            out.close();
    8586        } catch (IOException ioe) {
     
    9899        reply.append(content);
    99100        try {
    100             out.write(reply.toString().getBytes());
     101            out.write(DataHelper.getASCII(reply.toString()));
    101102            out.close();
    102103        } catch (IOException ioe) {
Note: See TracChangeset for help on using the changeset viewer.