File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
rest/rest-sqs/src/main/scala/org/elasticmq/rest/sqs/directives Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 11package org .elasticmq .rest .sqs .directives
22
33import org .apache .pekko .http .scaladsl .model .ContentTypes ._
4- import org .apache .pekko .http .scaladsl .model .HttpEntity
4+ import org .apache .pekko .http .scaladsl .model .{ HttpEntity , HttpResponse , StatusCodes }
55import org .apache .pekko .http .scaladsl .server .{Directives , RequestContext , Route }
66import org .elasticmq .rest .sqs .Constants ._
77
@@ -44,7 +44,8 @@ trait RespondDirectives {
4444
4545 def emptyResponse (xmlTagName : String )(implicit marshallerDependencies : MarshallerDependencies ): server.Route = {
4646 marshallerDependencies.protocol match {
47- case AWSProtocol .`AWSJsonProtocol1.0` => complete(200 , HttpEntity .Empty )
47+ case AWSProtocol .`AWSJsonProtocol1.0` =>
48+ complete(HttpResponse (status = StatusCodes .OK , entity = HttpEntity .Empty ))
4849 case _ =>
4950 respondWith {
5051 <wrapper >
You can’t perform that action at this time.
0 commit comments