pulsar-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mme...@apache.org
Subject [incubator-pulsar] branch master updated: Build responses when returning from web service (#1823)
Date Tue, 22 May 2018 04:49:10 GMT
This is an automated email from the ASF dual-hosted git repository.

mmerli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-pulsar.git


The following commit(s) were added to refs/heads/master by this push:
     new 920b778  Build responses when returning from web service (#1823)
920b778 is described below

commit 920b7787d8f6d80213877709d574732c8b77d3c4
Author: Dave Rusek <dave.rusek@gmail.com>
AuthorDate: Mon May 21 22:49:05 2018 -0600

    Build responses when returning from web service (#1823)
---
 .../main/java/org/apache/pulsar/broker/admin/v2/SchemasResource.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/v2/SchemasResource.java
b/pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/v2/SchemasResource.java
index 0f6b996..043233d 100644
--- a/pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/v2/SchemasResource.java
+++ b/pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/v2/SchemasResource.java
@@ -86,7 +86,7 @@ public class SchemasResource extends AdminResource {
                     if (isNull(schema)) {
                         response.resume(Response.status(Response.Status.NOT_FOUND).build());
                     } else if (schema.schema.isDeleted()) {
-                        response.resume(Response.noContent());
+                        response.resume(Response.noContent().build());
                     } else {
                         response.resume(
                             Response.ok()
@@ -132,7 +132,7 @@ public class SchemasResource extends AdminResource {
                     if (isNull(schema)) {
                         response.resume(Response.status(Response.Status.NOT_FOUND).build());
                     } else if (schema.schema.isDeleted()) {
-                        response.resume(Response.noContent());
+                        response.resume(Response.noContent().build());
                     } else {
                         response.resume(
                             Response.ok()

-- 
To stop receiving notification emails like this one, please contact
mmerli@apache.org.

Mime
View raw message