Skip to content

Add header for opting into correct URL decoding - #206

Merged
hiranya911 merged 4 commits into
masterfrom
rockwood/url-decoding
Nov 20, 2018
Merged

hiranya911 merged 4 commits into
masterfrom
rockwood/url-decoding

Conversation

@rockwotj

Copy link
Copy Markdown
Contributor

There is a long standing bug (~years) in the RTDB url decoding where we URL decode query parameters twice. Since we can't simply fix the issue without breaking users, we allow an opt-in upgrade/fix of the correct behavior via a header X-Firebase-Decoding: 1. We hope to make this the default (correct) behavior at some point in the near future. Which then this header will not be needed anymore.

There is a long standing bug (~years) in the RTDB url decoding where we URL decode query parameters twice. Since we can't simply fix the issue without breaking users, we allow an opt-in upgrade/fix of the correct behavior via a header `X-Firebase-Decoding: 1`. We hope to make this the default (correct) behavior at some point in the near future. Which then this header will not be needed anymore.

@hiranya911 hiranya911 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code change looks good. Please also add a test case.

@hiranya911 hiranya911 assigned rockwotj and unassigned hiranya911 Nov 13, 2018
@hiranya911 hiranya911 assigned hiranya911 and unassigned rockwotj Nov 20, 2018

@hiranya911 hiranya911 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@hiranya911
hiranya911 merged commit 77737c0 into master Nov 20, 2018
@rockwotj
rockwotj deleted the rockwood/url-decoding branch November 20, 2018 18:32
rockwotj added a commit that referenced this pull request Mar 26, 2019
rockwotj added a commit that referenced this pull request Mar 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants