Skip to content

Commit

Permalink
Fix ippeveprinter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
zdohnal committed Apr 26, 2024
1 parent eeaf1f3 commit fc04a42
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions tools/ippeveprinter.c
Original file line number Diff line number Diff line change
Expand Up @@ -4096,14 +4096,20 @@ ippserver_attr_cb(
"identify-actions-default",
"identify-actions-supported",
"ipp-features-supported",
"ipp-versions-supproted",
"ipp-versions-supported",
"ippget-event-life",
"job-creation-attributes-supported",
"job-hold-until-supported",
"job-hold-until-time-supported",
"job-ids-supported",
"job-k-octets-supported",
"job-priority-default",
"job-priority-supported",
"job-settable-attributes-supported",
"job-sheets-default",
"job-sheets-supported",
"multiple-document-jobs-supported",
"multiple-document-handling-supported",
"multiple-operation-time-out",
"multiple-operation-time-out-action",
"natural-language-configured",
Expand All @@ -4115,6 +4121,7 @@ ippserver_attr_cb(
"notify-max-events-supported",
"notify-pull-method-supported",
"operations-supported",
"pdl-override-supported",
"printer-alert",
"printer-alert-description",
"printer-camera-image-uri",
Expand All @@ -4126,18 +4133,25 @@ ippserver_attr_cb(
"printer-detailed-status-messages",
"printer-dns-sd-name",
"printer-fax-log-uri",
"printer-geo-location",
"printer-get-attributes-supported",
"printer-icons",
"printer-id",
"printer-info",
"printer-is-accepting-jobs",
"printer-location",
"printer-message-date-time",
"printer-message-from-operator",
"printer-message-time",
"printer-more-info",
"printer-name",
"printer-organization",
"printer-organizational-unit",
"printer-service-type",
"printer-settable-attributes-supported",
"printer-state",
"printer-state-change-date-time",
"printer-state-change-time",
"printer-state-message",
"printer-state-reasons",
"printer-static-resource-directory-uri",
Expand All @@ -4148,6 +4162,7 @@ ippserver_attr_cb(
"printer-supply-info-uri",
"printer-up-time",
"printer-uri-supported",
"printer-uuid",
"printer-xri-supported",
"queued-job-count",
"reference-uri-scheme-supported",
Expand Down Expand Up @@ -7500,7 +7515,7 @@ respond_http(
* 100-continue doesn't send any headers...
*/

return (httpWriteResponse(client->http, HTTP_STATUS_CONTINUE) == 0);
return (!httpWriteResponse(client->http, HTTP_STATUS_CONTINUE));
}

/*
Expand Down Expand Up @@ -7549,7 +7564,7 @@ respond_http(

httpSetLength(client->http, length);

if (httpWriteResponse(client->http, code) < 0)
if (httpWriteResponse(client->http, code))
return (0);

/*
Expand Down

0 comments on commit fc04a42

Please sign in to comment.