Skip to content

sharness: gateway tests should check headers #1059

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

Closed
jbenet opened this issue Apr 12, 2015 · 1 comment
Closed

sharness: gateway tests should check headers #1059

jbenet opened this issue Apr 12, 2015 · 1 comment
Labels
help wanted Seeking public contribution on this issue kind/test Testing work topic/gateway Topic gateway

Comments

@jbenet
Copy link
Member

jbenet commented Apr 12, 2015

our sharness gateway tests should check various headers are set correctly, like:

# range requests
Accept-Ranges: bytes

# content
Content-Length: 4
Content-Type: text/plain; charset=utf-8

# caching. for a year on /ipfs -- standard for "forever". more may get ignored :(
Cache-Control: public, max-age=29030400
Last-Modified: Thu, 01 Jan 1970 00:00:01 GMT
Date: Sun, 12 Apr 2015 09:40:07 GMT
Etag: QmYNmQKp6SuaVrpgWRsPTgCQCnpxUYGq76YEKBXuj2N4H6

Suborigin: QmYNmQKp6SuaVrpgWRsPTgCQCnpxUYGq76YEKBXuj2N4H6
X-Ipfs-Path: /ipfs/QmYNmQKp6SuaVrpgWRsPTgCQCnpxUYGq76YEKBXuj2N4H6

(on both GET and HEAD requests. and probably PUT too.)

@whyrusleeping whyrusleeping added kind/test Testing work topic/gateway Topic gateway labels Apr 12, 2015
@whyrusleeping whyrusleeping added the help wanted Seeking public contribution on this issue label Mar 6, 2017
@Jorropo
Copy link
Contributor

Jorropo commented Jul 27, 2023

This now happens in https://github.com/ipfs/gateway-conformance

@Jorropo Jorropo closed this as completed Jul 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Seeking public contribution on this issue kind/test Testing work topic/gateway Topic gateway
Projects
None yet
Development

No branches or pull requests

3 participants