The `rec.HeaderMap` is deprecated since go1.11 and the
`rec.Header()` method should be used instead. This commit
does this switch.
Found by https://staticcheck.io/ which was suggested by Fred,
thanks for this.
these test a daemon request and check the expected response type
before returning the response for further specific checks
this simplifies away some checks in the tests but the bigger win is
avoiding the .(*daemon.Resp) casts everywhere, in particular
this will reduce the number of affected places if we change
somewhat the internal types used to produce responses
This adds a new option "remote=true" to the
/v2/assertions/{assertType} endpoint. This will force
the daemon to search the store instead of the local asserts
database.
This will be needed for the `snap download <foo>` feature
that does the downloading via the snapd daemon.