We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
func TestEnvVarHandlerSpecialValue(t *testing.T) { os.Setenv("testEnvKey", "testBase64:TQ==") defer os.Unsetenv("testEnvKey") app := fiber.New() app.Use("/envvars", New()) req, _ := http.NewRequest("GET", "http://localhost/envvars", nil) resp, err := app.Test(req) utils.AssertEqual(t, nil, err) respBody, err := ioutil.ReadAll(resp.Body) utils.AssertEqual(t, nil, err) var envVars EnvVar utils.AssertEqual(t, nil, json.Unmarshal(respBody, &envVars)) val := envVars.Vars["testEnvKey"] utils.AssertEqual(t, "testBase64:TQ==", val) }
=== RUN TestEnvVarHandlerSpecialValue envvar_test.go:124: Test: TestEnvVarHandlerSpecialValue Trace: envvar_test.go:124 Expect: testBase64:TQ== (string) Result: testBase64:TQ (string) --- FAIL: TestEnvVarHandlerSpecialValue (0.00s) FAIL
Run the above test case.
PASS
v2.37.0
No response
The text was updated successfully, but these errors were encountered:
After:
=== RUN TestEnvVarHandlerSpecialValue --- PASS: TestEnvVarHandlerSpecialValue (0.00s) PASS
Sorry, something went wrong.
Thank you, I was about to send a commit for multiple "=" characters and just wanted to check issues before and saw your PR 馃憤
Successfully merging a pull request may close this issue.
Bug Description
How to Reproduce
Run the above test case.
Expected Behavior
PASS
Fiber Version
v2.37.0
Code Snippet (optional)
No response
Checklist:
The text was updated successfully, but these errors were encountered: