Permalink
Browse files

make createClient method protected

  • Loading branch information...
1 parent 225f1f7 commit a5973373786c34fd198f3789b638d80fb9837aae @casualjim casualjim committed Oct 11, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/src/main/scala/org/scalatra/test/HttpComponentsClient.scala
@@ -88,7 +88,7 @@ trait HttpComponentsClient extends Client {
withResponse(HttpComponentsClientResponse(client.execute(req))) { f }
}
- private def createClient = {
+ protected def createClient = {
val client = new DefaultHttpClient()
client.getParams.setBooleanParameter(ClientPNames.HANDLE_REDIRECTS, false)
client.getParams.setParameter(ClientPNames.COOKIE_POLICY, CookiePolicy.BROWSER_COMPATIBILITY)

0 comments on commit a597337

Please sign in to comment.