privoxy.git
15 years agoAdd list_contains_item().
Fabian Keil [Tue, 17 Apr 2007 18:14:06 +0000 (18:14 +0000)]
Add list_contains_item().

15 years agoIntroduce tags as alternative way to specify which
Fabian Keil [Sun, 15 Apr 2007 16:39:21 +0000 (16:39 +0000)]
Introduce tags as alternative way to specify which
actions apply to a request. At the moment tags can be
created based on client and server headers.

15 years agoFix for Actionsfile feedback item #1700037 2007-04-13, for mp3.com.au pop ups
hal9 [Fri, 13 Apr 2007 22:45:40 +0000 (22:45 +0000)]
Fix for Actionsfile feedback item #1700037 2007-04-13, for mp3.com.au pop ups
blocked incorrectly. CVS:
----------------------------------------------------------------------

15 years agoReference action files in CGI URLs by id instead
Fabian Keil [Fri, 13 Apr 2007 13:36:46 +0000 (13:36 +0000)]
Reference action files in CGI URLs by id instead
of using the first part of the file name.
Fixes BR 1694250 and BR 1590556.

15 years agoLog a warning if the content is compressed, filtering is
Fabian Keil [Thu, 12 Apr 2007 12:53:58 +0000 (12:53 +0000)]
Log a warning if the content is compressed, filtering is
enabled and Privoxy was compiled without zlib support.
Closes FR#1673938.

15 years agoFix action order.
Fabian Keil [Thu, 12 Apr 2007 11:33:22 +0000 (11:33 +0000)]
Fix action order.

15 years agoUpdate action list and version.
Fabian Keil [Thu, 12 Apr 2007 11:30:37 +0000 (11:30 +0000)]
Update action list and version.

15 years ago- Don't mistake VC++'s _snprintf() for a snprintf() replacement.
Fabian Keil [Thu, 12 Apr 2007 10:41:23 +0000 (10:41 +0000)]
- Don't mistake VC++'s _snprintf() for a snprintf() replacement.
- Move some cgi_edit_actions_for_url() variables into structs.
- Remove bogus comment.

15 years agoBroaden scope for mediaplex.com to catch: https://secure.img-cdn.mediaplex.com/
hal9 [Thu, 12 Apr 2007 02:57:46 +0000 (02:57 +0000)]
Broaden scope for mediaplex.com to catch: https://secure.img-cdn.mediaplex.com/
per Actionsfile feedback item #1698822.

15 years agoEnforce some assertions that could be triggered
Fabian Keil [Wed, 11 Apr 2007 10:55:44 +0000 (10:55 +0000)]
Enforce some assertions that could be triggered
on mingw32 and other systems where we use threads
but no locks.

15 years agoAdded exception for fish4.co.uk and moved shockwave.com exception to the correct...
proactivesvcs [Wed, 11 Apr 2007 09:23:06 +0000 (09:23 +0000)]
Added exception for fish4.co.uk and moved shockwave.com exception to the correct section.

15 years agoDon't mistake VC++'s _snprintf() for a snprintf() replacement.
Fabian Keil [Mon, 9 Apr 2007 18:11:36 +0000 (18:11 +0000)]
Don't mistake VC++'s _snprintf() for a snprintf() replacement.

15 years agoCheck for HAVE_SNPRINTF instead of __OS2__
Fabian Keil [Mon, 9 Apr 2007 17:48:51 +0000 (17:48 +0000)]
Check for HAVE_SNPRINTF instead of __OS2__
before including the portable snprintf() code.

15 years agoCheck for snprintf().
Fabian Keil [Mon, 9 Apr 2007 17:34:58 +0000 (17:34 +0000)]
Check for snprintf().

15 years agoAdd macro for strlcpy() in case the libc lacks it.
Fabian Keil [Sun, 8 Apr 2007 17:04:51 +0000 (17:04 +0000)]
Add macro for strlcpy() in case the libc lacks it.

15 years agoWe need <sys/time.h> for gettimeofday(), not <time.h>.
Fabian Keil [Sun, 8 Apr 2007 16:44:15 +0000 (16:44 +0000)]
We need <sys/time.h> for gettimeofday(), not <time.h>.

15 years agoReference action files in CGI URLs by id instead
Fabian Keil [Sun, 8 Apr 2007 13:21:06 +0000 (13:21 +0000)]
Reference action files in CGI URLs by id instead
of using the first part of the file name.
Fixes BR 1694250 and BR 1590556.

15 years agoSome updates regarding header filtering,
Fabian Keil [Thu, 5 Apr 2007 11:47:51 +0000 (11:47 +0000)]
Some updates regarding header filtering,
handling of compressed content and redirect's
support for pcrs commands.

15 years agoAddition to generic unblockers by path for shockwave.com games first-party tracking.
proactivesvcs [Mon, 2 Apr 2007 08:49:49 +0000 (08:49 +0000)]
Addition to generic unblockers by path for shockwave.com games first-party tracking.

15 years ago- Add DNS retries for Solaris and other systems
Fabian Keil [Sun, 1 Apr 2007 17:37:07 +0000 (17:37 +0000)]
- Add DNS retries for Solaris and other systems
  whose gethostbyname_r version takes five arguments.
- Move maximum number of DNS retries into a macro.

15 years agoAdd checks for gettimeofday() and strlcpy().
Fabian Keil [Sat, 31 Mar 2007 13:35:11 +0000 (13:35 +0000)]
Add checks for gettimeofday() and strlcpy().

15 years agoAdd alternative log_error() with timestamps
Fabian Keil [Sat, 31 Mar 2007 13:33:28 +0000 (13:33 +0000)]
Add alternative log_error() with timestamps
that contain milliseconds and without using
strcpy(), strcat() or sprintf().

15 years agoDivide @filter-params@ into @client-header-filter-params@
Fabian Keil [Thu, 29 Mar 2007 11:40:34 +0000 (11:40 +0000)]
Divide @filter-params@ into @client-header-filter-params@
@content-filter-params@ and @server-header-filter-params@.

15 years agoModified generic unblockers by path to include "adverse" as per support request 1687839.
proactivesvcs [Mon, 26 Mar 2007 17:37:39 +0000 (17:37 +0000)]
Modified generic unblockers by path to include "adverse" as per support request 1687839.

15 years agoDon't CLF-log CONNECT requests twice.
Fabian Keil [Sun, 25 Mar 2007 16:55:54 +0000 (16:55 +0000)]
Don't CLF-log CONNECT requests twice.

15 years agoLet parse_header_time() return a jb_err code
Fabian Keil [Sun, 25 Mar 2007 14:27:11 +0000 (14:27 +0000)]
Let parse_header_time() return a jb_err code
instead of a pointer that can only be used to
check for NULL anyway.

15 years ago- Fix warnings when compiled with glibc.
Fabian Keil [Sun, 25 Mar 2007 14:26:40 +0000 (14:26 +0000)]
- Fix warnings when compiled with glibc.
- Don't use crumble() for cookie crunching.
- Move cookie time parsing into parse_header_time().
- Let parse_header_time() return a jb_err code
  instead of a pointer that can only be used to
  check for NULL anyway.

15 years agoList Polipo as alternative to Squid.
Fabian Keil [Fri, 23 Mar 2007 14:03:25 +0000 (14:03 +0000)]
List Polipo as alternative to Squid.

15 years ago- Fix minor mistakes and add some details.
Fabian Keil [Thu, 22 Mar 2007 14:10:59 +0000 (14:10 +0000)]
- Fix minor mistakes and add some details.
- Document "enforce-blocks".
- Stop calling HTTP proxies anon proxies and give
  examples how parent proxies can decrease the user's
  privacy level.

15 years ago- Log the content size after decompression in decompress_iob()
Fabian Keil [Wed, 21 Mar 2007 12:24:47 +0000 (12:24 +0000)]
- Log the content size after decompression in decompress_iob()
  instead of pcrs_filter_response().

15 years ago- Add better protection against malicious gzip headers.
Fabian Keil [Wed, 21 Mar 2007 12:23:53 +0000 (12:23 +0000)]
- Add better protection against malicious gzip headers.
- Stop logging the first hundred bytes of decompressed content.
  It looks like it's working and there is always debug 16.
- Log the content size after decompression in decompress_iob()
  instead of pcrs_filter_response().

15 years agoAdjust to new world order with dedicated header-filter actions.
Fabian Keil [Tue, 20 Mar 2007 15:40:00 +0000 (15:40 +0000)]
Adjust to new world order with dedicated header-filter actions.

15 years ago- Remove filter_client_header() and filter_client_header(),
Fabian Keil [Tue, 20 Mar 2007 15:22:17 +0000 (15:22 +0000)]
- Remove filter_client_header() and filter_client_header(),
  filter_header() now checks the shiny new
  CSP_FLAG_CLIENT_HEADER_PARSING_DONE flag instead.

15 years ago- Use dedicated header filter actions instead of abusing "filter".
Fabian Keil [Tue, 20 Mar 2007 15:21:44 +0000 (15:21 +0000)]
- Use dedicated header filter actions instead of abusing "filter".
  Replace "filter-client-headers" and "filter-client-headers"
  with "server-header-filter" and "client-header-filter".
- Remove filter_client_header() and filter_client_header(),
  filter_header() now checks the shiny new
  CSP_FLAG_CLIENT_HEADER_PARSING_DONE flag instead.

15 years agoUse dedicated header filter actions instead of abusing "filter".
Fabian Keil [Tue, 20 Mar 2007 15:16:34 +0000 (15:16 +0000)]
Use dedicated header filter actions instead of abusing "filter".
Replace "filter-client-headers" and "filter-client-headers"
with "server-header-filter" and "client-header-filter".

15 years agoLog the source address for ACL-related connection drops.
Fabian Keil [Tue, 20 Mar 2007 13:53:17 +0000 (13:53 +0000)]
Log the source address for ACL-related connection drops.

15 years agoExcepted lads.myspace.com from being blocked by .*ads.
proactivesvcs [Mon, 19 Mar 2007 14:28:38 +0000 (14:28 +0000)]
Excepted lads.myspace.com from being blocked by .*ads.

15 years agoNew config option: enforce-blocks.
Fabian Keil [Sat, 17 Mar 2007 15:20:05 +0000 (15:20 +0000)]
New config option: enforce-blocks.

15 years ago- Use snprintf instead of sprintf.
Fabian Keil [Sat, 17 Mar 2007 11:52:15 +0000 (11:52 +0000)]
- Use snprintf instead of sprintf.
- Mention copyright for the replacement
  functions in the copyright header.

15 years ago- Add revision log and copyright header.
Fabian Keil [Sat, 17 Mar 2007 11:31:36 +0000 (11:31 +0000)]
- Add revision log and copyright header.
- Reword instructions and link to the FAQ
  in an attempt to reduce the number of
  incomplete reports.

15 years ago- Mention other reasons why acl directive loading might have failed.
Fabian Keil [Fri, 16 Mar 2007 16:47:35 +0000 (16:47 +0000)]
- Mention other reasons why acl directive loading might have failed.
- Don't log the acl source if the acl destination is to blame.

15 years ago- Disable overwrite-last-modified for URLs that
Fabian Keil [Fri, 16 Mar 2007 16:04:18 +0000 (16:04 +0000)]
- Disable overwrite-last-modified for URLs that
  look like download manager material.
- Don't fast-redirect WSJ login URLs.
- Block tracking images in /. rss feeds.

15 years agoAdding blocks for two actionsfile tracker requests. One re: adinterax that
hal9 [Wed, 14 Mar 2007 11:02:33 +0000 (11:02 +0000)]
Adding blocks for two actionsfile tracker requests. One re: adinterax that
includes images, js, and outright blocks. And the other for googleadservices
"gampad".

15 years ago- Fix port handling in acl_addr() and use a temporary acl spec
Fabian Keil [Tue, 13 Mar 2007 11:28:43 +0000 (11:28 +0000)]
- Fix port handling in acl_addr() and use a temporary acl spec
  copy so error messages don't contain a truncated version.
- Log size of iob before and after decompression.

15 years agoAdd kludge to log unknown aliases and actions before exiting.
Fabian Keil [Sun, 11 Mar 2007 15:56:12 +0000 (15:56 +0000)]
Add kludge to log unknown aliases and actions before exiting.

15 years ago- Move null byte check into separate function.
Fabian Keil [Fri, 9 Mar 2007 14:12:00 +0000 (14:12 +0000)]
- Move null byte check into separate function.
- Don't confuse the client with error pages
  if a CONNECT request was already confirmed.

15 years agoUse sizeof() more often.
Fabian Keil [Thu, 8 Mar 2007 17:41:05 +0000 (17:41 +0000)]
Use sizeof() more often.

15 years agoModifed tradedoubler.com block entry to allow click-throughs whilst still blocking...
proactivesvcs [Tue, 6 Mar 2007 19:04:40 +0000 (19:04 +0000)]
Modifed tradedoubler.com block entry to allow click-throughs whilst still blocking adverts.
http://sourceforge.net/tracker/index.php?func=detail&aid=1644583&group_id=11118&atid=460288

15 years agoAdding jlinks.industrybrains.com text ads per Actionsfile tracker # 1674363
hal9 [Tue, 6 Mar 2007 00:25:01 +0000 (00:25 +0000)]
Adding jlinks.industrybrains.com text ads per Actionsfile tracker # 1674363

15 years ago- Cosmetical changes for LOG_LEVEL_RE_FILTER messages.
Fabian Keil [Mon, 5 Mar 2007 14:40:53 +0000 (14:40 +0000)]
- Cosmetical changes for LOG_LEVEL_RE_FILTER messages.
- Hide the "Go there anyway" link for blocked CONNECT
  requests where going there anyway doesn't work anyway.

15 years agoAdd some CSP_FLAGs for the header parsers.
Fabian Keil [Mon, 5 Mar 2007 13:28:03 +0000 (13:28 +0000)]
Add some CSP_FLAGs for the header parsers.

15 years ago- Cosmetical changes for LOG_LEVEL_RE_FILTER messages.
Fabian Keil [Mon, 5 Mar 2007 13:25:32 +0000 (13:25 +0000)]
- Cosmetical changes for LOG_LEVEL_RE_FILTER messages.
- Handle "Cookie:" and "Connection:" headers a bit smarter
  (don't crunch them just to recreate them later on).
- Add another non-standard time format for the cookie
  expiration date detection.
- Fix a valgrind warning.

15 years agoUnblock mozilla/thunderbird download locations, eg *.ad.jp/pub/mozilla.
hal9 [Sat, 3 Mar 2007 19:42:02 +0000 (19:42 +0000)]
Unblock mozilla/thunderbird download locations, eg *.ad.jp/pub/mozilla.

15 years agoImprove cookie expiration date detection.
Fabian Keil [Sat, 24 Feb 2007 12:27:32 +0000 (12:27 +0000)]
Improve cookie expiration date detection.

15 years agoSpeed up NULL byte escaping and only log the complete
Fabian Keil [Fri, 23 Feb 2007 14:59:54 +0000 (14:59 +0000)]
Speed up NULL byte escaping and only log the complete
NULL byte requests with header debugging enabled.

15 years agoList Peter Hyman (pete4abw) as contributor.
Fabian Keil [Fri, 23 Feb 2007 14:24:37 +0000 (14:24 +0000)]
List Peter Hyman (pete4abw) as contributor.
He sent in several useful problem reports.

15 years agoAdding adtech.de from Actionsfile feedback item #1665682 by Adam Piggott.
hal9 [Fri, 23 Feb 2007 12:17:19 +0000 (12:17 +0000)]
Adding adtech.de from Actionsfile feedback item #1665682 by Adam Piggott.

15 years agoAnswer requests that contain NULL bytes with
Fabian Keil [Wed, 21 Feb 2007 18:42:10 +0000 (18:42 +0000)]
Answer requests that contain NULL bytes with
a custom response instead of waiting for more
data until the client eventually hangs up.

15 years ago- Fix a js-annoyances pcrs command that broke
Fabian Keil [Wed, 21 Feb 2007 14:10:23 +0000 (14:10 +0000)]
- Fix a js-annoyances pcrs command that broke
  evaluated code. (BR #1124071, thanks to Bor Gergely)
- Have unsolicited-popups and all-popups catch the
  wheather.com popup reported in in AF #1640173.

15 years agoAdding back the orginal filter content to offset problems found by Fabian.
hal9 [Mon, 19 Feb 2007 11:22:48 +0000 (11:22 +0000)]
Adding back the orginal filter content to offset problems found by Fabian.

15 years agoUpdates to the crude parental filter per Feature Requests item #1648657.
hal9 [Sat, 17 Feb 2007 13:29:44 +0000 (13:29 +0000)]
Updates to the crude parental filter per Feature Requests item #1648657.

15 years agoAllow access to Privoxy's CGI pages, don't call trusted
Fabian Keil [Wed, 14 Feb 2007 17:15:36 +0000 (17:15 +0000)]
Allow access to Privoxy's CGI pages, don't call trusted
domains "safe", note that "+" is unsafe in most environments
and remove the comment about "*" (doesn't work).

15 years agoApparently fopen()ing in "binary" mode doesn't require
Fabian Keil [Tue, 13 Feb 2007 15:10:26 +0000 (15:10 +0000)]
Apparently fopen()ing in "binary" mode doesn't require
#ifdefs, it's already done without them in cgiedit.c.

15 years agoReplace hash escaping code to prevent
Fabian Keil [Tue, 13 Feb 2007 14:35:25 +0000 (14:35 +0000)]
Replace hash escaping code to prevent
crashes, memory and file corruption.

15 years agoRemove redundant log message.
Fabian Keil [Tue, 13 Feb 2007 13:59:24 +0000 (13:59 +0000)]
Remove redundant log message.

15 years agoSync with CVS.
Fabian Keil [Sat, 10 Feb 2007 17:03:32 +0000 (17:03 +0000)]
Sync with CVS.

15 years agoDon't overlook map result for the forwarding-type.
Fabian Keil [Sat, 10 Feb 2007 17:01:37 +0000 (17:01 +0000)]
Don't overlook map result for the forwarding-type.

15 years ago- Show forwarding settings on the show-url-info page
Fabian Keil [Sat, 10 Feb 2007 16:55:22 +0000 (16:55 +0000)]
- Show forwarding settings on the show-url-info page
- Fix some HTML syntax errors.

15 years agoUse a transparent background for the PNG replacement pattern.
Fabian Keil [Thu, 8 Feb 2007 19:44:49 +0000 (19:44 +0000)]
Use a transparent background for the PNG replacement pattern.

15 years agoDon't run server_content_length() the first time
Fabian Keil [Thu, 8 Feb 2007 19:12:35 +0000 (19:12 +0000)]
Don't run server_content_length() the first time
sed() parses server headers; only adjust the
Content-Length header if the page was modified.

15 years agoFix log messages regarding the cookie time format
Fabian Keil [Wed, 7 Feb 2007 16:52:11 +0000 (16:52 +0000)]
Fix log messages regarding the cookie time format
(cookie and request URL were mixed up).

15 years agoFix suse-dist as described in BR#1654052.
Fabian Keil [Wed, 7 Feb 2007 11:52:40 +0000 (11:52 +0000)]
Fix suse-dist as described in BR#1654052.
(I didn't test it, but it's done the same
way in redhat-dist which is known to work).

15 years ago- Let decompress_iob()
Fabian Keil [Wed, 7 Feb 2007 11:27:12 +0000 (11:27 +0000)]
- Let decompress_iob()
  - not corrupt the content if decompression fails
    early. (the first byte(s) were lost).
  - use pointer arithmetics with defined outcome for
    a change.
- Use a different kludge to remember a failed decompression.

15 years ago- Move delivery and logging of crunched responses
Fabian Keil [Wed, 7 Feb 2007 11:12:02 +0000 (11:12 +0000)]
- Move delivery and logging of crunched responses
  from chat() into send_crunch_response().
- Display the reason for generating http_responses.
- Log the content length for LOG_LEVEL_CLF correctly
  (still incorrect for some fixed responses).
- Reword an incorrect comment about
  treat-forbidden-connects-like-blocks violating
  the specs.
- Add some log messages.

15 years ago- Save the reason for generating http_responses.
Fabian Keil [Wed, 7 Feb 2007 10:55:20 +0000 (10:55 +0000)]
- Save the reason for generating http_responses.
- Block (+block) with status code 403 instead of 404.
- Use a different kludge to remember a failed decompression.

15 years ago- Save the reason for generating http_responses.
Fabian Keil [Wed, 7 Feb 2007 10:45:22 +0000 (10:45 +0000)]
- Save the reason for generating http_responses.
- Fix --disable-toggle (again).
- Use TBL birthday hack for 403 responses as well.
- Uglify the @menu@ again to fix JavaScript
  errors on the "blocked" template.
- Escape an ampersand in cgi_error_unknown().

15 years agoAdd new http_response member to save
Fabian Keil [Wed, 7 Feb 2007 10:36:16 +0000 (10:36 +0000)]
Add new http_response member to save
the reason why the response was generated.

15 years ago- Let banners-by-link look for "advert".
Fabian Keil [Mon, 5 Feb 2007 16:47:31 +0000 (16:47 +0000)]
- Let banners-by-link look for "advert".
- Fix XML systax problems with banners-by-link
  and banners-by-size (AF#1651570).

15 years agoTwo new user tracking submissions from Adam Piggot.
hal9 [Mon, 5 Feb 2007 12:08:52 +0000 (12:08 +0000)]
Two new user tracking submissions from Adam Piggot.

15 years agoUpdate copyright range for the About message.
Fabian Keil [Wed, 31 Jan 2007 16:25:24 +0000 (16:25 +0000)]
Update copyright range for the About message.

15 years agoSearch for Max-Forwards headers case-insensitive,
Fabian Keil [Wed, 31 Jan 2007 16:21:38 +0000 (16:21 +0000)]
Search for Max-Forwards headers case-insensitive,
don't generate the "501 unsupported" message for invalid
Max-Forwards values and don't increase negative ones.

15 years agoTwo recent submissions via the Actions file tracker, one for domain squatting
hal9 [Wed, 31 Jan 2007 11:43:44 +0000 (11:43 +0000)]
Two recent submissions via the Actions file tracker, one for domain squatting
pop-ups and one for projectwonderful banner ads.

15 years ago- Let server_set_cookie() check the expiration date
Fabian Keil [Tue, 30 Jan 2007 13:05:26 +0000 (13:05 +0000)]
- Let server_set_cookie() check the expiration date
  of cookies and don't touch the ones that are already
  expired. Fixes problems with low quality web applications
  as described in BR 932612.

- Adjust comment in client_max_forwards to reality;
  remove invalid Max-Forwards headers.

15 years agoAccept WebDAV methods for subversion
Fabian Keil [Sun, 28 Jan 2007 16:11:23 +0000 (16:11 +0000)]
Accept WebDAV methods for subversion
in parse_http_request(). Closes FR 1581425.

15 years ago- Add HEAD support to finish_http_response.
Fabian Keil [Sun, 28 Jan 2007 13:41:18 +0000 (13:41 +0000)]
- Add HEAD support to finish_http_response.
- Add error favicon to internal HTML error messages.

15 years ago- Add config file entries for "templdir",
Fabian Keil [Sat, 27 Jan 2007 13:13:44 +0000 (13:13 +0000)]
- Add config file entries for "templdir",
  "accept-intercepted-requests" and "split-large-forms".
- Update meaning of debug 128 which is used by all
  redirecting actions now.

15 years agoAdd new config option "templdir" to
Fabian Keil [Sat, 27 Jan 2007 13:09:16 +0000 (13:09 +0000)]
Add new config option "templdir" to
change the templates directory.

15 years agoTwo changes related to yahoo. One unblocker and one better regex for blocking
hal9 [Sat, 27 Jan 2007 11:51:36 +0000 (11:51 +0000)]
Two changes related to yahoo. One unblocker and one better regex for blocking
submitted by Justin McMurty.

15 years agoMove mutex initialization into separate
Fabian Keil [Sat, 27 Jan 2007 10:52:56 +0000 (10:52 +0000)]
Move mutex initialization into separate
function and exit in case of errors.

15 years agoStop filter_header() from unintentionally removing
Fabian Keil [Fri, 26 Jan 2007 15:33:46 +0000 (15:33 +0000)]
Stop filter_header() from unintentionally removing
empty header lines that were enlisted by the continue
hack.

15 years ago- Start to reduce chat()'s line count and move
Fabian Keil [Fri, 26 Jan 2007 14:18:42 +0000 (14:18 +0000)]
- Start to reduce chat()'s line count and move
  parts of it into separate functions.
- Add "HTTP/1.1 100 Continue" hack for BR 756734.

15 years ago- Comment cosmetic.
Fabian Keil [Thu, 25 Jan 2007 15:02:46 +0000 (15:02 +0000)]
- Comment cosmetic.
- Suggest to check the show-status page
  and to make sure the forwarders are running.
  (I expect this page to be mostly reached by
  Tor users who forgot to actually start the Tor client.)

15 years agoFix template name in comments.
Fabian Keil [Thu, 25 Jan 2007 14:18:32 +0000 (14:18 +0000)]
Fix template name in comments.

15 years agoAdd "forwarding-failed" template,
Fabian Keil [Thu, 25 Jan 2007 14:16:54 +0000 (14:16 +0000)]
Add "forwarding-failed" template,
currently only used for socks errors

15 years ago- Save errors in socks4_connect() to csp->error_message.
Fabian Keil [Thu, 25 Jan 2007 14:09:45 +0000 (14:09 +0000)]
- Save errors in socks4_connect() to csp->error_message.
- Silence some gcc43 warnings, hopefully the right way.

15 years ago- Add Proxy-Agent header to HTTP snippets that are
Fabian Keil [Thu, 25 Jan 2007 14:02:30 +0000 (14:02 +0000)]
- Add Proxy-Agent header to HTTP snippets that are
  supposed to reach HTTP clients only.
- Made a few CONNECT log messages more descriptive.
- Catch completely empty server responses (as seen
  with Tor's fake ".noconnect" top level domain).
- Use shiny new "forwarding-failed" template for socks errors.

15 years agoAdded "forwarding-failed" template support for error_response().
Fabian Keil [Thu, 25 Jan 2007 13:47:26 +0000 (13:47 +0000)]
Added "forwarding-failed" template support for error_response().

15 years agoFreez csp->error_message in sweep().
Fabian Keil [Thu, 25 Jan 2007 13:38:20 +0000 (13:38 +0000)]
Freez csp->error_message in sweep().

15 years agoAdd csp->error_message for failure reasons
Fabian Keil [Thu, 25 Jan 2007 13:36:59 +0000 (13:36 +0000)]
Add csp->error_message for failure reasons
that should be embedded into the CGI pages.

15 years ago- Repeat the request URL before logging any headers.
Fabian Keil [Wed, 24 Jan 2007 12:56:52 +0000 (12:56 +0000)]
- Repeat the request URL before logging any headers.
  Makes reading the log easier in case of simultaneous requests.
- If there are more than one Content-Type headers in one request,
  use the first one and remove the others.
- Remove "newval" variable in server_content_type().
  It's only used once.