Skip to content

Commit

Permalink
[SCB-1143]Servicecomb support watch service center with auth headers
Browse files Browse the repository at this point in the history
  • Loading branch information
heyile authored and wujimin committed Jan 31, 2019
1 parent 7b40fa7 commit ed82471
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

import io.vertx.core.Handler;
import io.vertx.core.buffer.Buffer;
import io.vertx.core.http.HttpMethod;

/**
* Created by on 2017/4/28.
Expand All @@ -44,8 +45,8 @@ public static void open(IpPort ipPort, String url, Handler<Void> onOpen, Handler
client.websocket(ipPort.getPort(),
ipPort.getHostOrIp(),
url,
RestUtils.getDefaultHeaders().addAll(RestUtils
.getSignAuthHeaders(RestUtils.createSignRequest(null, ipPort, new RequestParam(), url, new HashMap<>()))),
RestUtils.getDefaultHeaders().addAll(RestUtils.getSignAuthHeaders(
RestUtils.createSignRequest(HttpMethod.GET.name(), ipPort, new RequestParam(), url, new HashMap<>()))),
ws -> {
onOpen.handle(null);

Expand Down

0 comments on commit ed82471

Please sign in to comment.