Skip to content

Instantly share code, notes, and snippets.

@spencergibb
Created February 6, 2017 19:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spencergibb/f233f912d7129c36969a0944da283267 to your computer and use it in GitHub Desktop.
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
# 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/**
# 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