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 1
1
package org .elasticmq .rest .sqs .directives
2
2
3
3
import 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 }
5
5
import org .apache .pekko .http .scaladsl .server .{Directives , RequestContext , Route }
6
6
import org .elasticmq .rest .sqs .Constants ._
7
7
@@ -44,7 +44,8 @@ trait RespondDirectives {
44
44
45
45
def emptyResponse (xmlTagName : String )(implicit marshallerDependencies : MarshallerDependencies ): server.Route = {
46
46
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 ))
48
49
case _ =>
49
50
respondWith {
50
51
<wrapper >
You can’t perform that action at this time.
0 commit comments