summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2011-11-10 21:08:47 +0100
committerLars-Dominik Braun <lars@6xq.net>2011-11-10 21:10:12 +0100
commit26e659a69e260523938b37f6025b90e391b9a724 (patch)
treefb604dc1e8b120c72ab08eb4ba0117148aee7dfe /src
parent1a19723ad07aee17d7169869e3ade75e1495070f (diff)
downloadpianobar-26e659a69e260523938b37f6025b90e391b9a724.tar.gz
pianobar-26e659a69e260523938b37f6025b90e391b9a724.tar.bz2
pianobar-26e659a69e260523938b37f6025b90e391b9a724.zip
waitress: Don't send full url to server
We CONNECT to server through proxy and can use paths here. Closes #179
Diffstat (limited to 'src')
-rw-r--r--src/libwaitress/waitress.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libwaitress/waitress.c b/src/libwaitress/waitress.c
index b5d30b6..8bb519a 100644
--- a/src/libwaitress/waitress.c
+++ b/src/libwaitress/waitress.c
@@ -854,7 +854,7 @@ static WaitressReturn_t WaitressSendRequest (WaitressHandle_t *waith) {
}
/* send request */
- if (WaitressProxyEnabled (waith)) {
+ if (WaitressProxyEnabled (waith) && !waith->url.tls) {
snprintf (buf, WAITRESS_BUFFER_SIZE,
"%s http://%s:%s/%s HTTP/" WAITRESS_HTTP_VERSION "\r\n",
(waith->method == WAITRESS_METHOD_GET ? "GET" : "POST"),