forked from loafle/openapi-generator-original
fix: don't send just " " in body, send an empty string (#10561)
Co-authored-by: Mickael MAGNIEZ <mmagniez@veepee.com>
This commit is contained in:
parent
cd9bd969d7
commit
ba55332f4c
@ -172,7 +172,7 @@ class ApiInvoker(formats: Formats)(implicit system: ActorSystem) extends CustomC
|
||||
case Some(c: String) =>
|
||||
HttpRequest(m, uri, entity = HttpEntity(normalizedContentType(request.contentType), ByteString(c)))
|
||||
case _ =>
|
||||
HttpRequest(m, uri, entity = HttpEntity(normalizedContentType(request.contentType), ByteString(" ")))
|
||||
HttpRequest(m, uri, entity = HttpEntity(normalizedContentType(request.contentType), ByteString("")))
|
||||
}
|
||||
case m: HttpMethod => HttpRequest(m, uri)
|
||||
}
|
||||
|
@ -182,7 +182,7 @@ class ApiInvoker(formats: Formats)(implicit system: ActorSystem) extends CustomC
|
||||
case Some(c: String) =>
|
||||
HttpRequest(m, uri, entity = HttpEntity(normalizedContentType(request.contentType), ByteString(c)))
|
||||
case _ =>
|
||||
HttpRequest(m, uri, entity = HttpEntity(normalizedContentType(request.contentType), ByteString(" ")))
|
||||
HttpRequest(m, uri, entity = HttpEntity(normalizedContentType(request.contentType), ByteString("")))
|
||||
}
|
||||
case m: HttpMethod => HttpRequest(m, uri)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user