Skip to content
This repository has been archived by the owner. It is now read-only.

Commit

Permalink
Fix broken file upload
Browse files Browse the repository at this point in the history
  • Loading branch information
fomkin committed Dec 21, 2021
1 parent 44a3419 commit 63733f3
Showing 1 changed file with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,9 @@ private[korolev] final class KorolevServiceImpl[F[_]: Effect](http: PartialFunct
case Root / "bridge" / deviceId / sessionId / "file" / descriptor / "info" =>
postService.filesInfo(Qsid(deviceId, sessionId), descriptor, request.body)
case Root / "bridge" / deviceId / sessionId / "file" / descriptor / _ =>
request.method match {
case Request.Method.Post | Request.Method.Put =>
postService.uploadFile(Qsid(deviceId, sessionId), descriptor, request.headers, request.body)
case Request.Method.Get =>
postService.downloadFile(Qsid(deviceId, sessionId), descriptor)
}

postService.downloadFile(Qsid(deviceId, sessionId), descriptor)
case Root / "bridge" / deviceId / sessionId / "file" / descriptor =>
postService.uploadFile(Qsid(deviceId, sessionId), descriptor, request.headers, request.body)

// Server side rendering
case path if path == Root || ssrService.canBeRendered(request.pq) =>
Expand Down

0 comments on commit 63733f3

Please sign in to comment.