summaryrefslogtreecommitdiff
path: root/modules/printbackends
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2007-09-07 18:32:36 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2007-09-07 18:32:36 +0000
commit378eb68948928078f2800fb7289fc64cb3324ab6 (patch)
tree412eb93adcefb76d07cc83c87b298b84f7f29c40 /modules/printbackends
parente9efd4291c2c7b337a26b6ae6f8f2ab8a6c81949 (diff)
downloadgtk+-378eb68948928078f2800fb7289fc64cb3324ab6.tar.gz
Check for the cups function httpGetAuthString().
2007-09-07 Matthias Clasen <mclasen@redhat.com> * configure.in: Check for the cups function httpGetAuthString(). * modules/printbackends/cups/gtkcupsutils.c: Use httpGetAuthString() if available. (#467414, Claudio Saavedra) svn path=/trunk/; revision=18753
Diffstat (limited to 'modules/printbackends')
-rw-r--r--modules/printbackends/cups/gtkcupsutils.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/printbackends/cups/gtkcupsutils.c b/modules/printbackends/cups/gtkcupsutils.c
index 32d433f1fe..8fc76f0b41 100644
--- a/modules/printbackends/cups/gtkcupsutils.c
+++ b/modules/printbackends/cups/gtkcupsutils.c
@@ -629,10 +629,14 @@ _post_send (GtkCupsRequest *request)
httpClearFields (request->http);
httpSetField (request->http, HTTP_FIELD_CONTENT_LENGTH, length);
- httpSetField (request->http, HTTP_FIELD_CONTENT_TYPE, "application/ipp");
+ httpSetField (request->http, HTTP_FIELD_CONTENT_TYPE, "application/ipp");`
+#ifdef HAVE_HTTPGETAUTHSTRING
+ httpSetField (request->http, HTTP_FIELD_AUTHORIZATION, httpGetAuthString (request->http));
+#else
#ifdef HAVE_HTTP_AUTHSTRING
httpSetField (request->http, HTTP_FIELD_AUTHORIZATION, request->http->authstring);
#endif
+#endif
if (httpPost (request->http, request->resource))
{