(msg string)
| 15 | ) |
| 16 | |
| 17 | func newSignatureError(msg string) error { |
| 18 | return SignatureError{errctx.NewTextError( |
| 19 | msg, |
| 20 | 1, |
| 21 | errctx.WithStatusCode(http.StatusForbidden), |
| 22 | errctx.WithPublicMessage("Forbidden"), |
| 23 | errctx.WithShouldReport(false), |
| 24 | errctx.WithDocsURL("https://docs.imgproxy.net/usage/signing_url"), |
| 25 | )} |
| 26 | } |
| 27 | |
| 28 | func newMalformedSignatureError(ctx context.Context) error { |
| 29 | msg := "The signature appears to be a processing option. The signature section should always be present in the URL." |
no test coverage detected