diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2011-11-10 21:08:47 +0100 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2011-11-10 21:10:12 +0100 |
commit | 26e659a69e260523938b37f6025b90e391b9a724 (patch) | |
tree | fb604dc1e8b120c72ab08eb4ba0117148aee7dfe | |
parent | 1a19723ad07aee17d7169869e3ade75e1495070f (diff) | |
download | pianobar-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
-rw-r--r-- | src/libwaitress/waitress.c | 2 |
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"), |