]> git.ipfire.org Git - thirdparty/cups.git/commit
scheduler: Fix sending response headers to client 927/head
authorZdenek Dohnal <zdohnal@redhat.com>
Wed, 3 Apr 2024 08:39:24 +0000 (10:39 +0200)
committerZdenek Dohnal <zdohnal@redhat.com>
Wed, 3 Apr 2024 08:39:24 +0000 (10:39 +0200)
commitd60341b3355fd8825bec00792f301ef99d715a93
treef69827f6ccdc135d7d7ed3be6d5e4e8011de70d5
parent3a8c87fd1885743edbbcca1506fe058650f90f31
scheduler: Fix sending response headers to client

Sometimes headers are not correctly copied into response to the client
(some are missing). It happens because `sent_header` is set prematurely
before the actual send happens. The present code in affected `cupsdWriteClient`
scope looks like code remains from CUPS 1.6.3.

With the change, testing via curl gives reliable results all time.
scheduler/client.c