Skip to content
Permalink
Browse files
fix: include '+' in SAFEPATHCHARS_URLENCODER (#955)
  • Loading branch information
elharo authored and chingor13 committed Jan 22, 2020
1 parent f11b3af commit 9384459015b37e1671aebadc4b8c25dc9e1e033f
Showing with 3 additions and 3 deletions.
  1. +3 −3 google-http-client/src/main/java/com/google/api/client/util/escape/PercentEscaper.java
@@ -65,10 +65,10 @@ public class PercentEscaper extends UnicodeEscaper {
public static final String SAFEPATHCHARS_URLENCODER = "-_.!~*'()@:$&,;=+";

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

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

0 comments on commit 9384459

Please sign in to comment.