tangled
alpha
login
or
join now
whitequark.org
/
git-pages
10
fork
atom
[mirror] Scalable static site server for Git forges (like GitHub Pages)
10
fork
atom
overview
issues
pulls
pipelines
Set `Content-Type:` to negotiated content type.
whitequark.org
3 months ago
1283b4e0
7313ab7d
+1
1 changed file
expand all
collapse all
unified
split
src
pages.go
+1
src/pages.go
···
583
583
w.WriteHeader(http.StatusNotAcceptable)
584
584
return fmt.Errorf("no supported content types (Accept: %s)", r.Header.Get("Accept"))
585
585
case "application/vnd.git-pages.unresolved":
586
586
+
w.Header().Set("Content-Type", "application/vnd.git-pages.unresolved")
586
587
w.WriteHeader(http.StatusUnprocessableEntity)
587
588
for _, missingRef := range unresolvedRefErr.missing {
588
589
fmt.Fprintln(w, missingRef)