diff --git a/README.md b/README.md index 3c81235..e11cf93 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ X-XSS-Protection: 1 ; mode=block "User-Agent": "HTTPie/0.9.8" }, "origin": "207.107.158.66", - "url": "http://httpbin.org/get" + "url": "https://httpbin.org/get" } @@ -98,7 +98,7 @@ X-XSS-Protection: 1 ; mode=block "User-Agent": "HTTPie/0.9.8" }, "origin": "207.107.158.66", - "url": "http://httpbin.org/get" + "url": "https://httpbin.org/get" } $ http :8080/delay/2 Host:www.hystrix.org diff --git a/src/main/java/com/example/demogateway/DemogatewayApplication.java b/src/main/java/com/example/demogateway/DemogatewayApplication.java index 652d87a..22f7510 100644 --- a/src/main/java/com/example/demogateway/DemogatewayApplication.java +++ b/src/main/java/com/example/demogateway/DemogatewayApplication.java @@ -28,23 +28,23 @@ public RouteLocator customRouteLocator(RouteLocatorBuilder builder) { //@formatter:off return builder.routes() .route("path_route", r -> r.path("/get") - .uri("http://httpbin.org")) + .uri("https://httpbin.org")) .route("host_route", r -> r.host("*.myhost.org") - .uri("http://httpbin.org")) + .uri("https://httpbin.org")) .route("rewrite_route", r -> r.host("*.rewrite.org") .filters(f -> f.rewritePath("/foo/(?.*)", "/${segment}")) - .uri("http://httpbin.org")) + .uri("https://httpbin.org")) .route("hystrix_route", r -> r.host("*.hystrix.org") .filters(f -> f.hystrix(c -> c.setName("slowcmd"))) - .uri("http://httpbin.org")) + .uri("https://httpbin.org")) .route("hystrix_fallback_route", r -> r.host("*.hystrixfallback.org") .filters(f -> f.hystrix(c -> c.setName("slowcmd").setFallbackUri("forward:/hystrixfallback"))) - .uri("http://httpbin.org")) + .uri("https://httpbin.org")) .route("limit_route", r -> r .host("*.limited.org").and().path("/anything/**") .filters(f -> f.requestRateLimiter(c -> c.setRateLimiter(redisRateLimiter()))) - .uri("http://httpbin.org")) + .uri("https://httpbin.org")) .route("websocket_route", r -> r.path("/echo") .uri("ws://localhost:9000")) .build();