1 |
|
/* ============================================================================ |
2 |
|
* Douglas Thrift's Search Engine License |
3 |
|
* |
4 |
< |
* Copyright (C) 2002, Douglas Thrift. All Rights Reserved. |
4 |
> |
* Copyright (C) 2002-2003, Douglas Thrift. All Rights Reserved. |
5 |
|
* Redistribution and use in source and binary forms, with or without |
6 |
|
* modification, are permitted provided that the following conditions are met: |
7 |
|
* |
75 |
|
#endif // _WIN32 |
76 |
|
} |
77 |
|
|
78 |
< |
bool HttpHandler::handle(URL &url, bool head) |
78 |
> |
bool HttpHandler::handle(URL &url, const string referer, bool head) |
79 |
|
{ |
80 |
|
bool answer = false; |
81 |
|
|
132 |
|
delete [] port; |
133 |
|
} |
134 |
|
|
135 |
< |
// putline("Referer: " + ¿referer?); |
135 |
> |
if (referer != "") |
136 |
> |
{ |
137 |
> |
putline("Referer: " + referer); |
138 |
> |
} |
139 |
> |
|
140 |
|
putline("Connection: close"); |
141 |
|
putline(); |
142 |
|
|