Handle retrieving resources of next version via curl when using https.
Fixes Routes to map parameters correctly when manual routing is used