Fixed setting c.username as job-name attribute

This commit is contained in:
Sergio Ryan 2019-05-17 17:33:07 +07:00 committed by GitHub
parent c6b254aac5
commit 6461f0d7c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -131,7 +131,7 @@ func (c *IPPClient) Print(docs []Document, printer, jobName string, copies, prio
req := NewRequest(OperationCreateJob, 1)
req.OperationAttributes["printer-uri"] = printerURI
req.OperationAttributes["requesting-user-name"] = c.username
req.OperationAttributes["job-name"] = c.username
req.OperationAttributes["job-name"] = jobName
req.JobAttributes["copies"] = copies
req.JobAttributes["job-priority"] = priority