Alexey Serbin has uploaded this change for review. ( http://gerrit.cloudera.org:8080/15172
Change subject: [util] add CURLOPT_FAILONERROR for instance metadata requests ...................................................................... [util] add CURLOPT_FAILONERROR for instance metadata requests By default, libcurl doesn't return an error if the server responds with HTTP response >= 400. It makes sense for handling auth-related codes such as 401 and 407. In case of retrieving cloud instance metadata it's more convenient to turn HTTP response codes >= 400 into CURLcode errors. Change-Id: I10ca30b13323cdd4cad65259dda78e0ee3c7d647 --- M src/kudu/util/cloud/instance_metadata.cc M src/kudu/util/curl_util.cc M src/kudu/util/curl_util.h 3 files changed, 15 insertions(+), 0 deletions(-) git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/72/15172/1 -- To view, visit http://gerrit.cloudera.org:8080/15172 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: kudu Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: I10ca30b13323cdd4cad65259dda78e0ee3c7d647 Gerrit-Change-Number: 15172 Gerrit-PatchSet: 1 Gerrit-Owner: Alexey Serbin <[email protected]>
