Permalink
Browse files

Removing accept header as it sometimes causes problems

  • Loading branch information...
eoftedal committed May 13, 2010
1 parent 503d85e commit 155338bab89a21058a4fd0d858b80e491f2f3748
Showing with 3 additions and 2 deletions.
  1. +1 −1 flex/malariaproxy.mxml
  2. +2 −1 proxy-backend/malaria/MalariaServer.java
View
@@ -49,7 +49,7 @@ xmlns="*" creationComplete="useHttpService()">
if (reqData != null && reqData != "") {
urlRequest.data = new URLVariables(reqData);
}
- urlRequest.requestHeaders.push(new URLRequestHeader("Accept", accept));
+ //urlRequest.requestHeaders.push(new URLRequestHeader("Accept", accept));
var loader:URLLoader = new URLLoader();
loader.dataFormat = URLLoaderDataFormat.BINARY;
loader.addEventListener(Event.COMPLETE, onComplete);
@@ -42,6 +42,7 @@ private MalariaServer(String hostname, int port) {
public void serveSocket(Socket client, ServerSocket proxySocket, String hostname, int port) {
try {
+ System.out.println(client.getInetAddress().getHostAddress());
PrintStream clientOut = new PrintStream(client.getOutputStream());
InputStream clientIn = client.getInputStream();
System.out.println("Client connected");
@@ -70,7 +71,7 @@ public void serveSocket(Socket client, ServerSocket proxySocket, String hostname
boolean done = false;
int dl = -1;
int read = 0;
- System.out.println("Ready to read...");
+ System.out.println("Waiting for response from client...");
ArrayList<byte[]> fullBuffer = new ArrayList<byte[]>();
while (!done) {
byte[] buffer = new byte[4096];

0 comments on commit 155338b

Please sign in to comment.