Use -u 'username:password' for basic auth in the curl request snippet

Previously, when a request was made that used basic auth, the curl
snippet would configure the authentication header with the
Base64-encoded header. This commit updates the snippet to use the
more human-friendly -u option to provide the username and password
in place of the authentication header.

Closes gh-122
This commit is contained in:
Paul-Christian Volkmer
2015-09-10 00:30:11 +02:00
committed by Andy Wilkinson
parent 26adbb10ae
commit d329e2da5d
3 changed files with 36 additions and 1 deletions

View File

@@ -27,6 +27,7 @@ dependencies {
compile 'junit:junit'
compile 'org.springframework:spring-webmvc'
compile 'javax.servlet:javax.servlet-api'
compile 'commons-codec:commons-codec:1.10'
compile files(jmustacheRepackJar)
jarjar 'com.googlecode.jarjar:jarjar:1.3'
jmustache 'com.samskivert:jmustache@jar'