Skip to content

Commit

Permalink
Attach credentials to solr schema requests
Browse files Browse the repository at this point in the history
  • Loading branch information
eikek committed Oct 2, 2024
1 parent af3eed6 commit ee55a3d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,12 @@ private class SolrClientImpl[F[_]: Async](val config: SolrConfig, underlying: Cl

def getSchema: F[SchemaResponse] =
val url = solrUrl / "schema"
val req = Method.GET(url)
val req = Method.GET(url).withBasicAuth(credentials)
underlying.expect[SchemaResponse](req)

def getStatus: F[StatusResponse] =
val url = config.baseUrl / "api" / "cores"
val req = Method.GET(url)
val req = Method.GET(url).withBasicAuth(credentials)
underlying.expect[StatusResponse](req)

def createCore(name: String, configSet: Option[String]): F[Unit] =
Expand Down

0 comments on commit ee55a3d

Please sign in to comment.