File tree 2 files changed +5
-4
lines changed
2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 55
55
{{$Report := json gorebuild}}
56
56
{{with $Report}}
57
57
58
- Using gorebuild from {{.Version}}< br > < br >
59
-
58
+ Gorebuild version {{.Version}}.< br >
59
+ Built with Go version {{.GoVersion}}, {{.GOOS}}-{{.GOARCH}}.< br >
60
+ < br >
60
61
Rebuild started at {{(rfc3339 .Start).UTC.Format "2006-01-02 15:04:05"}} UTC.< br >
61
62
Rebuild finished at {{(rfc3339 .End).UTC.Format "2006-01-02 15:04:05"}} UTC.< br >
62
63
Elapsed time: {{((rfc3339 .End).Sub (rfc3339 .Start)).Round 1e9}}.
Original file line number Diff line number Diff line change @@ -855,13 +855,13 @@ func (c *CachedURL) Get() (data []byte, err error) {
855
855
return nil , fmt .Errorf ("loading rebuild report JSON: %v" , err )
856
856
}
857
857
defer resp .Body .Close ()
858
- if resp .StatusCode == 206 {
858
+ if resp .StatusCode == http . StatusNotModified {
859
859
// Unmodified.
860
860
log .Printf ("checked %s - unmodified" , c .url )
861
861
return c .data , c .err
862
862
}
863
863
log .Printf ("reloading %s" , c .url )
864
- if resp .StatusCode != 200 {
864
+ if resp .StatusCode != http . StatusOK {
865
865
return nil , fmt .Errorf ("loading rebuild report JSON: %v" , resp .Status )
866
866
}
867
867
c .etag = resp .Header .Get ("Etag" )
You can’t perform that action at this time.
0 commit comments