Skip to content
New issue

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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implicit body test with base64, file, hex are done on HTTP raw body response #567

Closed
jcamiel opened this issue May 11, 2022 · 0 comments · Fixed by #568
Closed

Implicit body test with base64, file, hex are done on HTTP raw body response #567

jcamiel opened this issue May 11, 2022 · 0 comments · Fixed by #568
Assignees
Labels
bug Something isn't working
Milestone

Comments

@jcamiel
Copy link
Collaborator

jcamiel commented May 11, 2022

Following #563, implicit body tests with base64, file, hex are executed against the raw maybe compressed body of the HTTP response, whereas they should be executed against the decompressed body.

# All tho tests are equivalent and test that the decompressed body is `Hello World!`
GET http://localhost:8000/compressed/gzip
HTTP/1.0 200
```Hello World!```

# Test base64 implicit body:
GET http://localhost:8000/compressed/gzip
HTTP/1.0 200
base64,SGVsbG8gV29ybGQh;  # `Hello World!` in base64

# Test hex implicit body:
GET http://localhost:8000/compressed/gzip
HTTP/1.0 200
hex,48656c6c6f20576f726c6421; # `Hello World!` in bytes

# Test file implicit body:
GET http://localhost:8000/compressed/gzip
HTTP/1.0 200
file,hello.txt; # `Hello World!` in a file
@jcamiel jcamiel added the bug Something isn't working label May 11, 2022
@jcamiel jcamiel added this to the 1.7.0 milestone May 11, 2022
@jcamiel jcamiel self-assigned this May 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant