Browse Source

changed content type to sli/theen

cecylia 7 years ago
parent
commit
b76b16b65e
2 changed files with 2 additions and 2 deletions
  1. 1 1
      relay_station/Makefile
  2. 1 1
      relay_station/relay.c

+ 1 - 1
relay_station/Makefile

@@ -7,7 +7,7 @@ all: $(TARGETS)
 slitheen-proxy.o flow.o ptwist168.o crypto.o relay.o cryptothread.o util.o:: ptwist.h flow.h slitheen.h crypto.h relay.h cryptothread.h util.h
 
 slitheen-proxy: slitheen-proxy.o flow.o ptwist168.o crypto.o relay.o cryptothread.o util.o relay.h crypto.h ptwist.h flow.h slitheen.h cryptothread.h util.h
-	gcc -g -ggdb -o $@ $^ -lssl -lcrypto -lpcap -lpthread -ldl
+	gcc -g -ggdb -o $@ $^ -L/usr/local/lib -I/usr/local/include -lssl -lcrypto -lpcap -lpthread -ldl
 
 clean:
 	-rm *.o

+ 1 - 1
relay_station/relay.c

@@ -1031,7 +1031,7 @@ int process_downstream(flow *f, int32_t offset, struct packet_info *info){
 					len_ptr = strstr((const char *) p, "Content-Type: image");
 					if(len_ptr != NULL){
 						f->replace_response = 1;
-						memcpy(len_ptr + 14, "slitheen", 8);
+						memcpy(len_ptr + 14, "sli/theen", 9);
 						char *c = len_ptr + 14+8;
 						while(c[0] != '\r'){
 							c[0] = ' ';