From 66b25ae1bd1c682f9570d1ba012041ccd35abe38 Mon Sep 17 00:00:00 2001 From: Spring Operator Date: Wed, 20 Mar 2019 15:29:32 -0500 Subject: [PATCH] URL Cleanup This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener). # Fixed URLs ## Fixed Success These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended. * [ ] http://httpbin.org with 6 occurrences migrated to: https://httpbin.org ([https](https://httpbin.org) result 200). * [ ] http://httpbin.org/get with 2 occurrences migrated to: https://httpbin.org/get ([https](https://httpbin.org/get) result 200). # Ignored These URLs were intentionally ignored. * http://localhost with 1 occurrences --- README.md | 4 ++-- .../example/demogateway/DemogatewayApplication.java | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) 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();