Skip to content

Commit

Permalink
Removed usage info
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanOltmann committed Dec 16, 2024
1 parent 8f4d314 commit c2cc1e8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
File renamed without changes.
12 changes: 1 addition & 11 deletions src/main/kotlin/com/ashampoo/imageproxy/Routing.kt
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,6 @@ private val httpClient = HttpClient()
private val noRotate = VipsOption.Enum("no_rotate", 1)
private val stripMetadata = VipsOption.Enum("strip", 1)

private val usageString = buildString {

appendLine(SERVER_BANNER)
appendLine()
appendLine(
"Usage: Send HTTP GET request with headers " +
"'RemoteUrl' (mandatory), 'LongSidePx' (optional) & 'Quality' (optional) set."
)
}

fun Application.configureRouting() {
routing {

Expand All @@ -67,7 +57,7 @@ fun Application.configureRouting() {
val remoteUrl = call.request.header("RemoteUrl")

if (remoteUrl == null) {
call.respondText(usageString)
call.respondText(SERVER_BANNER)
return@get
}

Expand Down

0 comments on commit c2cc1e8

Please sign in to comment.