Skip to content
This repository has been archived by the owner on Sep 13, 2019. It is now read-only.

Commit

Permalink
Fixes slice builder to NOT encode query path for command line.
Browse files Browse the repository at this point in the history
Bug: 118380487
Test: Manually tested.
Change-Id: Iba582dc98d16e06b006d8b591cb934f918a3d886
  • Loading branch information
Jeremy Walker authored and codingjeremy committed Oct 24, 2018
1 parent c6d5cb3 commit 93b7c59
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ fun Uri.convertToOriginalScheme(): Uri {
var builder = Uri.Builder()
.authority(authority)
.path(path)
.query(query)
.encodedQuery(query)
.fragment(fragment)
builder = when (scheme) {
"slice-http" -> builder.scheme("http")
Expand All @@ -43,7 +43,7 @@ fun Uri.convertToSliceViewerScheme(): Uri {
var builder = Uri.Builder()
.authority(authority)
.path(path)
.query(query)
.encodedQuery(query)
.fragment(fragment)
builder = when (scheme) {
"http" -> builder.scheme("slice-http")
Expand Down

0 comments on commit 93b7c59

Please sign in to comment.