Skip to content

Commit 9384459

Browse files
elharochingor13
authored andcommitted
fix: include '+' in SAFEPATHCHARS_URLENCODER (#955)
1 parent f11b3af commit 9384459

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

google-http-client/src/main/java/com/google/api/client/util/escape/PercentEscaper.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ public class PercentEscaper extends UnicodeEscaper {
6565
public static final String SAFEPATHCHARS_URLENCODER = "-_.!~*'()@:$&,;=+";
6666

6767
/**
68-
* Contains the save characters plus all reserved characters. This happens to be the safe path
69-
* characters plus those characters which are reserved for URI segments, namely '+', '/', and '?'.
68+
* Contains the safe characters plus all reserved characters. This happens to be the safe path
69+
* characters plus those characters which are reserved for URI segments, namely '/' and '?'.
7070
*/
71-
public static final String SAFE_PLUS_RESERVED_CHARS_URLENCODER = SAFEPATHCHARS_URLENCODER + "+/?";
71+
public static final String SAFE_PLUS_RESERVED_CHARS_URLENCODER = SAFEPATHCHARS_URLENCODER + "/?";
7272

7373
/**
7474
* A string of characters that do not need to be encoded when used in URI user info part, as

0 commit comments

Comments
 (0)