Skip to content

Commit 182896a

Browse files
authored
Revert "Add header for opting into correct URL decoding (#186)" (#232)
This reverts commit 8124282.
1 parent 0684410 commit 182896a

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

db/db.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ func (c *Client) send(
114114
if c.authOverride != "" {
115115
opts = append(opts, internal.WithQueryParam(authVarOverride, c.authOverride))
116116
}
117-
opts = append(opts, internal.WithHeader("X-Firebase-Decoding", "1"))
118117
return c.hc.Do(ctx, &internal.Request{
119118
Method: method,
120119
URL: fmt.Sprintf("%s%s.json", c.url, path),

db/db_test.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -275,9 +275,6 @@ func checkRequest(t *testing.T, got, want *testReq) {
275275
if h := got.Header.Get("Authorization"); h != "Bearer mock-token" {
276276
t.Errorf("Authorization = %q; want = %q", h, "Bearer mock-token")
277277
}
278-
if h := got.Header.Get("X-Firebase-Decoding"); h != "1" {
279-
t.Errorf("X-Firebase-Decoding = %q; want = %q", h, "1")
280-
}
281278
if h := got.Header.Get("User-Agent"); h != testUserAgent {
282279
t.Errorf("User-Agent = %q; want = %q", h, testUserAgent)
283280
}

0 commit comments

Comments
 (0)