diff options
author | Matthias Clasen <mclasen@redhat.com> | 2007-09-07 18:32:36 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2007-09-07 18:32:36 +0000 |
commit | 378eb68948928078f2800fb7289fc64cb3324ab6 (patch) | |
tree | 412eb93adcefb76d07cc83c87b298b84f7f29c40 /modules/printbackends/cups | |
parent | e9efd4291c2c7b337a26b6ae6f8f2ab8a6c81949 (diff) | |
download | gtk+-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/cups')
-rw-r--r-- | modules/printbackends/cups/gtkcupsutils.c | 6 |
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)) { |