@@ -137,7 +137,7 @@ func TestChallengeResponseConfig_NewSession_ok(t *testing.T) {
137
137
138
138
h := http .HandlerFunc (func (w http.ResponseWriter , r * http.Request ) {
139
139
assert .Equal (t , http .MethodPost , r .Method )
140
- assert .Equal (t , "3q2+ 7w==" , r .URL .Query ().Get ("nonce" ))
140
+ assert .Equal (t , "3q2- 7w==" , r .URL .Query ().Get ("nonce" ))
141
141
assert .Equal (t , "application/vnd.veraison.challenge-response-session+json" , r .Header .Get ("Accept" ))
142
142
143
143
w .Header ().Set ("Location" , expectedSessionURI )
@@ -251,7 +251,7 @@ func TestChallengeResponseConfig_NewSession_relative_location_ok(t *testing.T) {
251
251
relativeSessionURI := testRelSessionURI
252
252
h := http .HandlerFunc (func (w http.ResponseWriter , r * http.Request ) {
253
253
assert .Equal (t , http .MethodPost , r .Method )
254
- assert .Equal (t , "3q2+ 7w==" , r .URL .Query ().Get ("nonce" ))
254
+ assert .Equal (t , "3q2- 7w==" , r .URL .Query ().Get ("nonce" ))
255
255
assert .Equal (t , "application/vnd.veraison.challenge-response-session+json" , r .Header .Get ("Accept" ))
256
256
257
257
w .Header ().Set ("Location" , relativeSessionURI )
@@ -821,7 +821,7 @@ func synthesizeSession(mt string, ev []byte) []string {
821
821
}
822
822
}` ,
823
823
}
824
- evs := base64 .StdEncoding .EncodeToString (ev )
824
+ evs := base64 .URLEncoding .EncodeToString (ev )
825
825
s [1 ] = fmt .Sprintf (s [1 ], mt , evs )
826
826
s [2 ] = fmt .Sprintf (s [2 ], evs )
827
827
return s
0 commit comments