/[storm]/storm/org/nongnu/storm/util/HTTPProxy.java
ViewVC logotype

Diff of /storm/org/nongnu/storm/util/HTTPProxy.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.31 by tuukkah, Tue May 13 09:52:14 2003 UTC revision 1.32 by benja, Wed May 21 21:09:28 2003 UTC
# Line 147  public class HTTPProxy implements Runnab Line 147  public class HTTPProxy implements Runnab
147                                                    
148                  byte[] bytes = s.getBytes("US-ASCII");                  byte[] bytes = s.getBytes("US-ASCII");
149                  resp.getOutputStream().write(bytes);                  resp.getOutputStream().write(bytes);
150                    resp.close();
151                  return resp;                  return resp;
152              } catch(FileNotFoundException e) {              } catch(FileNotFoundException e) {
153                  return resf.makeError(404, "Not found");                  return resf.makeError(404, "Not found");
# Line 231  public class HTTPProxy implements Runnab Line 232  public class HTTPProxy implements Runnab
232                  for(Iterator i=ids.iterator(); i.hasNext();) {                  for(Iterator i=ids.iterator(); i.hasNext();) {
233                      BlockId id = (BlockId)i.next();                      BlockId id = (BlockId)i.next();
234                      String s = id.getURI();                      String s = id.getURI();
235                      if(rewrite || id.getContentType().equals("text/html"))                      if(rewrite)
236                          s = base + s;                          s = base + s;
237                      w.write("<a href=\""+s+"\">"+id+"</a><br>\n");                      w.write("<a href=\""+s+"\">"+id+"</a><br>\n");
238                  }                  }

Legend:
Removed from v.1.31  
changed lines
  Added in v.1.32

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26