Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
colmsnowplow committed Sep 4, 2023
1 parent 6ec7e6c commit 97e3a68
Showing 1 changed file with 0 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,26 +95,7 @@ object Http {
// HEAD requests induce server errors that will take some digging to figure out.
// In the interest of getting to a usable tool quickly, for now we just throw an error for these.
case TrackerMethod.Head(_) => throw new NotImplementedError ( "HEAD requests not implemented" )

/*
generatedRequest.qs match {
case None => address
case Some(querystring: HttpRequestQuerystring) =>
// val newUri = address
querystring.toProto
querystring.toProto.foreach(kv =>
address = address.withQueryParam(kv.getName(), kv.getValue())
)
}
Request[F](method = Method.HEAD, uri = address).putHeaders(parseHeaders(generatedRequest.headers))
*/

// This hits org.http4s.client.UnexpectedStatus: unexpected HTTP status: 422 Unprocessable Entity for request HEAD

}
// TODO: Some code repetition can probably be removed from this

return req
}
Expand Down

0 comments on commit 97e3a68

Please sign in to comment.