Skip to content

Commit

Permalink
fix: replace all space in page to '+' before decode
Browse files Browse the repository at this point in the history
  • Loading branch information
imbajin committed May 7, 2021
1 parent dac208a commit bccf714
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ private byte[] toBytes() {

public static PageState fromString(String page) {
E.checkNotNull(page, "page");
return fromBytes(toBytes(page));
String originalPage = page.replace(' ', '+');
return fromBytes(toBytes(originalPage));
}

public static PageState fromBytes(byte[] bytes) {
Expand Down

0 comments on commit bccf714

Please sign in to comment.