packer/datasource/http
Lucas Bajolet 5d43239654 datasource/http: don't error on 2xx code
When a server returns a code that is not 200, we error in the current
state.

This is not conformant to the HTTP norm, as anything in the 2xx range is
considered a success, so the datasource should not error in this case.

Therefore, this commit fixes the condition in which we report an error,
so that anything in the 2xx range is now considered a success by the
datasource.
2024-05-21 14:26:26 -04:00
..
test-fixtures feat: add http datasource (#11658) 2022-05-17 19:26:34 +02:00
data.go datasource/http: don't error on 2xx code 2024-05-21 14:26:26 -04:00
data.hcl2spec.go make generate 2022-05-17 20:03:49 +02:00
data_acc_test.go chore: remove refs to deprecated io/ioutil 2023-09-26 11:13:31 -04:00