Skip to content

Commit

Permalink
In wkorg proxy, forward mimetype instead of static text/html (#7869)
Browse files Browse the repository at this point in the history
* In wkorg proxy, forward mimetype instead of static text/html

* unused import
  • Loading branch information
fm3 authored Jun 6, 2024
1 parent 281855f commit 59bc7fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/WkorgProxyController.scala
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class WkorgProxyController @Inject()(ws: WSClient,

def proxyPageOrMainView: Action[AnyContent] = sil.UserAwareAction.async { implicit request =>
if (matchesProxyPage(request)) {
ws.url(conf.Proxy.prefix + request.uri).get().map(resp => Ok(resp.bodyAsBytes.utf8String).as("text/html"))
ws.url(conf.Proxy.prefix + request.uri).get().map(resp => Ok(resp.bodyAsBytes.utf8String).as(resp.contentType))
} else {
for {
multiUserOpt <- Fox.runOptional(request.identity)(user =>
Expand Down

0 comments on commit 59bc7fb

Please sign in to comment.