Skip to content
This repository has been archived by the owner on Apr 18, 2021. It is now read-only.

Error EOF when first request for a resource is HEAD? #13

Open
mpictor opened this issue Jun 2, 2015 · 0 comments
Open

Error EOF when first request for a resource is HEAD? #13

mpictor opened this issue Jun 2, 2015 · 0 comments
Labels

Comments

@mpictor
Copy link

mpictor commented Jun 2, 2015

It seems that httpcache logs an error while attempting to cache a resource, if the first/only request is a HEAD. The error comes from handler.go:385.

Also, this line results in a poorly formatted error - when errorf passes the args to the log function, there is no distinction between err and the elements of keys, so the function thinks that the arg for %s is missing. One workaround is

errorf(fmt.Sprintf("error %s storing resources %%#v", err), keys)
@lox lox added the bug label Feb 23, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants