|
|
@ -184,7 +184,6 @@ namespace proxy |
|
|
|
{ |
|
|
|
{ |
|
|
|
assert(len); // This should always be called with a least a byte left to parse
|
|
|
|
assert(len); // This should always be called with a least a byte left to parse
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// remove "Referer" from http requst
|
|
|
|
// remove "Referer" from http requst
|
|
|
|
http_buff[len] = '\0'; |
|
|
|
http_buff[len] = '\0'; |
|
|
|
char *start = strstr((char *)http_buff, "\nReferer:"); |
|
|
|
char *start = strstr((char *)http_buff, "\nReferer:"); |
|
|
@ -195,7 +194,6 @@ namespace proxy |
|
|
|
len = len - (end - start); |
|
|
|
len = len - (end - start); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
while (len > 0) |
|
|
|
while (len > 0) |
|
|
|
{ |
|
|
|
{ |
|
|
|
//TODO: fallback to finding HOst: header if needed
|
|
|
|
//TODO: fallback to finding HOst: header if needed
|
|
|
|