mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 02:18:26 +00:00
Update scalafmt to 3.0.8
This commit is contained in:
@ -236,9 +236,9 @@ trait Conversions {
|
||||
i.concPerson.map(mkIdName),
|
||||
i.concEquip.map(mkIdName),
|
||||
i.folder.map(mkIdName),
|
||||
Nil, //attachments
|
||||
Nil, //tags
|
||||
Nil, //customfields
|
||||
Nil, // attachments
|
||||
Nil, // tags
|
||||
Nil, // customfields
|
||||
i.notes,
|
||||
Nil // highlight
|
||||
)
|
||||
|
@ -141,7 +141,7 @@ object ContentDisposition {
|
||||
}
|
||||
|
||||
private val parser = makeParser(mimeValue)
|
||||
//private val origParser = makeParser(Rfc7230.token | Rfc7230.quotedString)
|
||||
// private val origParser = makeParser(Rfc7230.token | Rfc7230.quotedString)
|
||||
|
||||
implicit val headerInstance: Header[ContentDisposition, Header.Single] = {
|
||||
val oh = `Content-Disposition`.headerInstance
|
||||
|
@ -140,9 +140,9 @@ object IntegrationEndpointRoutes {
|
||||
cfg: Config.IntegrationEndpoint.AllowedIps
|
||||
): HttpRoutes[F] =
|
||||
HttpRoutes { req =>
|
||||
//The `req.from' take the X-Forwarded-For header into account,
|
||||
//which is not desirable here. The `http-header' auth config
|
||||
//can be used to authenticate based on headers.
|
||||
// The `req.from' take the X-Forwarded-For header into account,
|
||||
// which is not desirable here. The `http-header' auth config
|
||||
// can be used to authenticate based on headers.
|
||||
val from = req.remote.map(_.host)
|
||||
if (from.exists(cfg.containsAddress)) OptionT.none[F, Response[F]]
|
||||
else OptionT.pure(Responses.forbidden[F])
|
||||
|
Reference in New Issue
Block a user