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

Update warp to 0.3.2 #1825

Merged
merged 1 commit into from
Jun 23, 2022
Merged

Conversation

joshrotenberg
Copy link
Contributor

This updates warp to the latest release, which happens to fix #1797 by making HEAD requests automatically part of warp::fs::dir routes:

With warp 0.3.1:

# cd guide && mdbook serve ...

$ curl --head localhost:3000/index.html
HTTP/1.1 404 Not Found
content-length: 14598
content-type: text/html
accept-ranges: bytes
last-modified: Mon, 20 Jun 2022 18:53:48 GMT
date: Mon, 20 Jun 2022 18:53:52 GMT

With warp 0.3.2:

# cd guide && mdbook serve ...

$ curl --head localhost:3000/index.html
HTTP/1.1 200 OK
content-length: 17487
content-type: text/html
accept-ranges: bytes
last-modified: Mon, 20 Jun 2022 18:56:24 GMT
date: Mon, 20 Jun 2022 18:56:28 GMT

See https://github.com/seanmonstar/warp/blob/master/CHANGELOG.md#v032-november-9-2021

Copy link
Contributor

@ehuss ehuss left a comment

Choose a reason for hiding this comment

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

Thanks!

@ehuss ehuss merged commit 0547868 into rust-lang:master Jun 23, 2022
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.

serve command does not implement HTTP HEAD
2 participants