diff --git a/src/pkg/scan/rest/v1/client.go b/src/pkg/scan/rest/v1/client.go index a24eba3fb..b6c65cdb2 100644 --- a/src/pkg/scan/rest/v1/client.go +++ b/src/pkg/scan/rest/v1/client.go @@ -158,6 +158,9 @@ func (c *basicClient) SubmitScan(req *ScanRequest) (*ScanResponse, error) { return nil, errors.Wrap(err, "v1 client: submit scan") } + // Resolve header + def.Resolver(request) + respData, err := c.send(request, generalResponseHandler(http.StatusAccepted)) if err != nil { return nil, errors.Wrap(err, "v1 client: submit scan") @@ -188,6 +191,9 @@ func (c *basicClient) GetScanReport(scanRequestID, reportMIMEType string) (strin return "", errors.Wrap(err, "v1 client: get scan report") } + // Resolve header + def.Resolver(req) + respData, err := c.send(req, reportResponseHandler()) if err != nil { // This error should not be wrapped