Most Docker API parameters take JSON values but some array parameters must be passed as multiple querystring parameters. Two known such parameters are t and extrahosts for the /build endpoint. There may be others.
This changes Modem to behave in a similar way: encode values to JSON by default, except the known special cases.
Most Docker API parameters take JSON values but some array parameters must be passed as multiple querystring parameters. Two known such parameters are
t
andextrahosts
for the/build
endpoint. There may be others.This changes Modem to behave in a similar way: encode values to JSON by default, except the known special cases.
This properly fixes https://github.com/apocas/dockerode/issues/605 and #139 and effectively reverts #133 and #134.