From e8f8cb2a64ce0944e0ee83d4771f9fbf395863a4 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Wed, 17 Aug 2011 22:12:20 +0200 Subject: [PATCH] sign the HTTP requests --- qcsrc/common/urllib.qc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcsrc/common/urllib.qc b/qcsrc/common/urllib.qc index 57782c71a..f7af9a40b 100644 --- a/qcsrc/common/urllib.qc +++ b/qcsrc/common/urllib.qc @@ -116,7 +116,7 @@ void url_fopen(string url, float mode, url_ready_func rdy, entity pass) e.url_fh = -1; e.url_rbuf = -1; e.url_wbuf = -1; - if(!uri_get(url, i + MIN_URL_ID)) + if(!crypto_uri_postbuf(url, i + MIN_URL_ID, string_null, string_null, -1, 0)) { rdy(e, pass, URL_READY_ERROR); strunzone(e.url_url); @@ -180,7 +180,7 @@ void url_fclose(entity e, url_ready_func rdy, entity pass) } print(ftos(i), "\n"); - if(!uri_postbuf(e.url_url, i + MIN_URL_ID, "text/plain", "", e.url_wbuf)) + if(!crypto_uri_postbuf(e.url_url, i + MIN_URL_ID, "text/plain", "", e.url_wbuf, 0)) { buf_del(e.url_wbuf); rdy(e, pass, URL_READY_ERROR); -- 2.39.2