Had an issue with request header "Referer: http://xxxxx.onion.city/path/to/file.html" not being properly replaced to be '.onion' URLs. This change to w2t fixes that. The w2t regex is only used in one place, and you can verify that it gives the correct behavior.
The other is a tweak on ctype's assignment to be prettier.
Had an issue with request header "Referer: http://xxxxx.onion.city/path/to/file.html" not being properly replaced to be '.onion' URLs. This change to w2t fixes that. The w2t regex is only used in one place, and you can verify that it gives the correct behavior.
The other is a tweak on ctype's assignment to be prettier.