Skip to content

Instantly share code, notes, and snippets.

@spencergibb
Created February 6, 2017 19:50
Show Gist options
  • Save spencergibb/80a134b4738c78ca64e4d0c77214fcb6 to your computer and use it in GitHub Desktop.
Save spencergibb/80a134b4738c78ca64e4d0c77214fcb6 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.
# 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