xorpaul/g10k

forge code does not accept http 200 code without reason

juliantaylor opened this issue · 0 comments

the core requires the code and the reason

if strings.TrimSpace(resp.Status) == "200 OK" {

https://github.com/xorpaul/g10k/blob/master/forge.go#L203
and a couple more places

in the http 1 spec the reason can be empty
https://www.rfc-editor.org/rfc/rfc2616#section-6.1

so g10k will fail with

Unexpected response code 200