Created
February 6, 2017 19:51
-
-
Save spencergibb/f233f912d7129c36969a0944da283267 to your computer and use it in GitHub Desktop.
Workaround for "MIME type may not contain reserved characters" with Spring Cloud Camden, Spring Boot 1.5 and zuul url routes. Raw
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# if you have a content-type with an encoding, this will produce a "MIME type may not contain reserved characters". | |
zuul: | |
routes: | |
myservice: | |
url: http://httpbin.org:80 | |
path: /get/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# use RibbonRoutingFilter instead of the SimpleHostRoutingFilter | |
zuul: | |
routes: | |
myservice: | |
serviceId: myservice | |
path: /get/** | |
myservice: | |
ribbon: | |
NIWSServerListClassName: com.netflix.loadbalancer.ConfigurationBasedServerList | |
listOfServers: httpbin.org:80 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment